mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +03:00
SLES10 Fixes (part 7)
- Initial SLES testing uncovered a long standing bug in the debug tracing. The tcd_for_each() macro expected a NULL to terminate the trace_data[i] array but this was only ever true due to luck. All trace_data[] iterators are now properly capped by TCD_TYPE_MAX. - SPLAT_MAJOR 229 conflicted with a 'hvc' device on my SLES system. Since this was always an arbitrary choice I picked something else. - The HAVE_PGDAT_LIST case should set pgdat_list_addr to the value stored at the address of the memory location returned by kallsyms_lookup_name().
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@
|
||||
* and kernelspace portions of splat must agree on.
|
||||
*/
|
||||
|
||||
#define SPLAT_MAJOR 229 /* XXX - Arbitrary */
|
||||
#define SPLAT_MAJOR 225 /* XXX - Arbitrary */
|
||||
#define SPLAT_MINORS 1
|
||||
#define SPLAT_NAME "splatctl"
|
||||
#define SPLAT_DEV "/dev/splatctl"
|
||||
|
||||
+2
-2
@@ -173,12 +173,12 @@ union trace_data_union {
|
||||
extern union trace_data_union (*trace_data[TCD_TYPE_MAX])[NR_CPUS];
|
||||
|
||||
#define tcd_for_each(tcd, i, j) \
|
||||
for (i = 0; trace_data[i] != NULL; i++) \
|
||||
for (i = 0; i < TCD_TYPE_MAX; i++) \
|
||||
for (j = 0, ((tcd) = &(*trace_data[i])[j].tcd); \
|
||||
j < num_possible_cpus(); j++, (tcd) = &(*trace_data[i])[j].tcd)
|
||||
|
||||
#define tcd_for_each_type_lock(tcd, i, cpu) \
|
||||
for (i = 0; trace_data[i] && \
|
||||
for (i = 0; i < TCD_TYPE_MAX && trace_data[i] && \
|
||||
(tcd = &(*trace_data[i])[cpu].tcd) && \
|
||||
trace_lock_tcd(tcd); trace_unlock_tcd(tcd), i++)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user