libtracefs: Add support for setting tracers
Quoted 7 lines · On Tue, 18 May 2021 20:56:42 +0530 Sameeruddin shaik <[email protected]>…
tracefs_tracer_set- set the tracertracefs_tracer_clear- clear the tracerSuggested-by Steven Rostedt <[email protected]>Signed-off-by Sameeruddin shaik <[email protected]>
Thanks Sameer,
The subject still needs to include the version:
"[PATCH v3] libtracefs: Add support for setting tracers"
You don't need to send another version just to fix this. But next time, please label the versions of any patch that is replacing another patch.
I'm going on PTO tomorrow for almost two weeks, and will not be able to process this till I get back. I probably wont be able to take this until June.
-- Steve
PATCH 1/1 libtracefs: Add support for setting tracers
tracefs_tracer_set - set the tracertracefs_tracer_clear - clear the tracer
Suggested-by Steven Rostedt <[email protected]>
Signed-off-by Sameeruddin shaik <[email protected]>
include/tracefs.h +19 -0
@@ -173,4 +173,23 @@ int tracefs_function_filter(struct tracefs_instance *instance, const char *filteint tracefs_function_notrace (struct tracefs_instance *instance,const char *filter,const char *module,unsigned int flags); +enum tracefs_tracers { +TRACEFS_TRACER_NOP =0 , +TRACEFS_TRACER_FUNCTION , +TRACEFS_TRACER_FUNCTION_GRAPH , +TRACEFS_TRACER_IRQSOFF , +TRACEFS_TRACER_PREEMPTOFF , +TRACEFS_TRACER_PREEMPTIRQSOFF , +TRACEFS_TRACER_WAKEUP , +TRACEFS_TRACER_WAKEUP_RT , +TRACEFS_TRACER_WAKEUP_DL , +TRACEFS_TRACER_MMIOTRACE , +TRACEFS_TRACER_HWLAT , +TRACEFS_TRACER_BRANCH , +TRACEFS_TRACER_BLOCK , +}; + +int tracefs_tracer_set (struct tracefs_instance *instance,enum tracefs_tracers tracer); + +int tracefs_tracer_clear (struct tracefs_instance *instance);#endif /* _TRACE_FS_H */
src/tracefs-tools.c +89 -0
98 lines not on this page · raw message
Signature · 1 line
2.7.4