From: David Goulet Date: Mon, 18 Jul 2011 14:50:47 +0000 (-0400) Subject: Makes kprobe attribute specific to kernel X-Git-Tag: v2.0-pre1~16 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=f05b5f07dd61554a2fcdc5a09d4d80cadf478a51;hp=e6ddca715d6dedb6ee25fe4392a6e1f9626b2544 Makes kprobe attribute specific to kernel Signed-off-by: David Goulet --- diff --git a/include/lttng-kernel.h b/include/lttng-kernel.h index 3259bff84..297317485 100644 --- a/include/lttng-kernel.h +++ b/include/lttng-kernel.h @@ -45,15 +45,8 @@ enum lttng_kernel_output { * This is the kernel ABI copied from lttng-modules tree. */ -/* Either addr is used or symbol_name and offset. */ -struct lttng_kernel_kprobe { - uint64_t addr; - - uint64_t offset; - char symbol_name[LTTNG_SYM_NAME_LEN]; -}; - -struct lttng_kernel_function_tracer { +/* Function tracer */ +struct lttng_kernel_function_attr { char symbol_name[LTTNG_SYM_NAME_LEN]; }; @@ -62,8 +55,8 @@ struct lttng_kernel_event { enum lttng_kernel_instrumentation instrumentation; /* Per instrumentation type configuration */ union { - struct lttng_kernel_kprobe kprobe; - struct lttng_kernel_function_tracer ftrace; + struct lttng_kernel_kprobe_attr kprobe; + struct lttng_kernel_function_attr ftrace; } u; }; diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h index 448bd9fdc..ac7c43504 100644 --- a/include/lttng/lttng.h +++ b/include/lttng/lttng.h @@ -94,9 +94,9 @@ struct lttng_kernel_context { }; /* - * Either addr is used or symbol_name and offset. + * Kernel Kprobe. Either addr is used or symbol_name and offset. */ -struct lttng_event_kprobe_attr { +struct lttng_kernel_kprobe_attr { uint64_t addr; uint64_t offset; @@ -118,7 +118,7 @@ struct lttng_event { enum lttng_event_type type; /* Per event type configuration */ union { - struct lttng_event_kprobe_attr kprobe; + struct lttng_kernel_kprobe_attr kprobe; struct lttng_event_function_attr ftrace; } attr; }; @@ -132,7 +132,7 @@ struct lttng_channel_attr { uint64_t num_subbuf; /* power of 2 */ unsigned int switch_timer_interval; /* usec */ unsigned int read_timer_interval; /* usec */ - enum lttng_event_output output; /* splice, mmap */ + enum lttng_event_output output; /* splice, mmap */ }; /*