Tzvetomir Stoyanov (VMware)
b843e9c3a2
tools lib traceevent: Rename pevent_register / unregister APIs
...
In order to make libtraceevent into a proper library, variables, data
structures and functions require a unique prefix to prevent name space
conflicts. That prefix will be "tep_" and not "pevent_". This changes
APIs: pevent_register_print_function, pevent_unregister_print_function,
pevent_register_event_handler, pevent_unregister_event_handler,
pevent_register_function, pevent_register_trace_clock
Signed-off-by: Steven Rostedt <[email protected] >
Cc: Andrew Morton <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Yordan Karadzhov (VMware) <[email protected] >
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Tzvetomir Stoyanov (VMware) <[email protected] >
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2018-08-13 15:27:35 -03:00
Tzvetomir Stoyanov (VMware)
6a48dc298e
tools lib traceevent, perf tools: Rename pevent print APIs
...
In order to make libtraceevent into a proper library, variables, data
structures and functions require a unique prefix to prevent name space
conflicts. That prefix will be "tep_" and not "pevent_". This changes
APIs: pevent_print_field, pevent_print_fields, pevent_print_funcs,
pevent_print_printk
Signed-off-by: Tzvetomir Stoyanov (VMware) <[email protected] >
Cc: Andrew Morton <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Yordan Karadzhov (VMware) <[email protected] >
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Steven Rostedt <[email protected] >
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2018-08-13 15:22:01 -03:00
Tzvetomir Stoyanov (VMware)
c32d52b464
tools lib traceevent, perf tools: Rename pevent plugin related APIs
...
In order to make libtraceevent into a proper library, variables, data
structures and functions require a unique prefix to prevent name space
conflicts. That prefix will be "tep_" and not "pevent_". This changes
the pevent plugin related API.
Signed-off-by: Tzvetomir Stoyanov (VMware) <[email protected] >
Cc: Andrew Morton <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Yordan Karadzhov (VMware) <[email protected] >
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Steven Rostedt <[email protected] >
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2018-08-13 15:21:39 -03:00
Tzvetomir Stoyanov (VMware)
cbc49b25b9
tools lib traceevent, perf tools: Rename 'struct pevent_record' to 'struct tep_record'
...
In order to make libtraceevent into a proper library, variables, data
structures and functions require a unique prefix to prevent name space
conflicts. That prefix will be "tep_" and not "pevent_". This changes
the 'struct pevent_record' to 'struct tep_record'.
Signed-off-by: Tzvetomir Stoyanov (VMware) <[email protected] >
Cc: Andrew Morton <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Yordan Karadzhov (VMware) <[email protected] >
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Steven Rostedt <[email protected] >
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2018-08-13 15:21:13 -03:00
Tzvetomir Stoyanov (VMware)
096177a8b5
tools lib traceevent, perf tools: Rename struct pevent to struct tep_handle
...
In order to make libtraceevent into a proper library, variables, data
structures and functions require a unique prefix to prevent name space
conflicts. That prefix will be "tep_" and not "pevent_". This changes
the struct pevent to struct tep_handle.
Signed-off-by: Tzvetomir Stoyanov (VMware) <[email protected] >
Cc: Andrew Morton <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Yordan Karadzhov (VMware) <[email protected] >
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Steven Rostedt <[email protected] >
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2018-08-10 15:29:35 -03:00
Namhyung Kim
4061edaa54
tools lib traceevent: Unregister handler when hrtimer plugin is unloaded
...
The timer handlers should be unregistered when the plugin is unloaded
otherwise they'll try to access invalid memory.
Signed-off-by: Namhyung Kim <[email protected] >
Reviewed-by: Jiri Olsa <[email protected] >
Acked-by: Steven Rostedt <[email protected] >
Cc: Frederic Weisbecker <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Jiri Olsa <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Steven Rostedt <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2014-01-16 16:26:24 -03:00
Jiri Olsa
b32cea650a
tools lib traceevent: Use pevent_print_func_field in hrtimer_start handler
...
The pevent_print_func_field function encompasses all the functionality
used in the hrtimer_start handler. Change the handler to use this
function.
This also unifies the function field output with the
hrtimer_expire_entry handler.
Suggested-by: Steven Rostedt <[email protected] >
Signed-off-by: Jiri Olsa <[email protected] >
Cc: Corey Ashford <[email protected] >
Cc: David Ahern <[email protected] >
Cc: Frederic Weisbecker <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Steven Rostedt <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2013-12-04 15:36:50 -03:00
Jiri Olsa
d9d13f8be6
tools lib traceevent: Add hrtimer plugin
...
Backporting hrtimer plugin.
Backported from Steven Rostedt's trace-cmd repo (HEAD 0f2c2fb):
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git
This plugin adds function field resolving for following tracepoint
events:
timer:hrtimer_expire_entry
timer:hrtimer_start
The diff of 'perf script' output generated by old and new code: (data
was generated by 'perf record -e 'timer:hrtimer*' -a')
--- script.hrtimer.old
+++ script.hrtimer.new
- swapper 0 [000] 27405.519092: timer:hrtimer_start: [FAILED TO PARSE] hrtimer=0xffff88021e20e800 function=0xffffffff810c0e10 expires=27398383000000 softexpires=27398383000000
+ swapper 0 [000] 27405.519103: timer:hrtimer_start: hrtimer=0xffff88021e20e800 function=tick_sched_timer expires=27398383000000 softexpires=27398383000000
- swapper 0 [001] 27405.519544: timer:hrtimer_expire_entry: [FAILED TO PARSE] hrtimer=0xffff880211334058 now=27398294182491 function=0xffffffff81086f20
+ swapper 0 [001] 27405.519544: timer:hrtimer_expire_entry: hrtimer=0xffff880211334058 now=27398294182491 function=posix_timer_fn/0x0
Check the 'function' field is translated into the function name.
Signed-off-by: Jiri Olsa <[email protected] >
Cc: Corey Ashford <[email protected] >
Cc: David Ahern <[email protected] >
Cc: Frederic Weisbecker <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: Namhyung Kim <[email protected] >
Cc: Paul Mackerras <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Steven Rostedt <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Steven Rostedt <[email protected] >
Signed-off-by: Arnaldo Carvalho de Melo <[email protected] >
2013-12-04 15:25:41 -03:00