X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2Fkernel-trace.c;fp=probes%2Fkernel-trace.c;h=6920f6f5cc1ca1e0b0ca67510e94f0ff430ec913;hb=46bb0d27b4073b9523c72c6f730b36d453fbe779;hp=cabe60e1c153eaf9dc79eff572a18135f814ad50;hpb=5702940ec618ead8ad34588ffa3a3009d359a3a1;p=lttng-modules.git diff --git a/probes/kernel-trace.c b/probes/kernel-trace.c index cabe60e1..6920f6f5 100644 --- a/probes/kernel-trace.c +++ b/probes/kernel-trace.c @@ -111,19 +111,17 @@ notrace void probe_irq_exit(void *_data, irqreturn_t retval) /* kernel_softirq_entry specialized tracepoint probe */ -void probe_softirq_entry(void *_data, struct softirq_action *h, - struct softirq_action *softirq_vec); +void probe_softirq_entry(void *_data, unsigned int vec_nr); DEFINE_MARKER_TP(kernel, softirq_entry, softirq_entry, probe_softirq_entry, "softirq_id #1u%lu"); -notrace void probe_softirq_entry(void *_data, struct softirq_action *h, - struct softirq_action *softirq_vec) +notrace void probe_softirq_entry(void *_data, unsigned int vec_nr) { struct marker *marker; unsigned char data; - data = ((unsigned long)h - (unsigned long)softirq_vec) / sizeof(*h); + data = vec_nr; marker = &GET_MARKER(kernel, softirq_entry); ltt_specialized_trace(marker, marker->single.probe_private, @@ -132,19 +130,17 @@ notrace void probe_softirq_entry(void *_data, struct softirq_action *h, /* kernel_softirq_exit specialized tracepoint probe */ -void probe_softirq_exit(void *_data, struct softirq_action *h, - struct softirq_action *softirq_vec); +void probe_softirq_exit(void *_data, unsigned int vec_nr); DEFINE_MARKER_TP(kernel, softirq_exit, softirq_exit, probe_softirq_exit, "softirq_id #1u%lu"); -notrace void probe_softirq_exit(void *_data, struct softirq_action *h, - struct softirq_action *softirq_vec) +notrace void probe_softirq_exit(void *_data, unsigned int vec_nr) { struct marker *marker; unsigned char data; - data = ((unsigned long)h - (unsigned long)softirq_vec) / sizeof(*h); + data = vec_nr; marker = &GET_MARKER(kernel, softirq_exit); ltt_specialized_trace(marker, marker->single.probe_private,