diff options
| author | Divya Indi <[email protected]> | 2019-11-20 19:08:38 +0000 |
|---|---|---|
| committer | Steven Rostedt (VMware) <[email protected]> | 2019-11-23 00:41:08 +0000 |
| commit | 28879787147358e8ffcae397f11748de3dd26577 (patch) | |
| tree | 560208f6a3e28a31d56c00e9b756c52c3035bdfb /tools/perf/util/python.c | |
| parent | tracing: Fix Kconfig indentation (diff) | |
| download | kernel-28879787147358e8ffcae397f11748de3dd26577.tar.gz kernel-28879787147358e8ffcae397f11748de3dd26577.zip | |
tracing: Adding new functions for kernel access to Ftrace instances
Adding 2 new functions -
1) struct trace_array *trace_array_get_by_name(const char *name);
Return pointer to a trace array with given name. If it does not exist,
create and return pointer to the new trace array.
2) int trace_array_set_clr_event(struct trace_array *tr,
const char *system ,const char *event, bool enable);
Enable/Disable events to this trace array.
Additionally,
- To handle reference counters, export trace_array_put()
- Due to introduction of the above 2 new functions, we no longer need to
export - ftrace_set_clr_event & trace_array_create APIs.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Divya Indi <[email protected]>
Reviewed-by: Aruna Ramakrishna <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions
