diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-04-09 21:40:00 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-04-09 21:55:40 -0400 |
commit | b06e5b8731c59a19be31c68dacecd272269919e7 (patch) | |
tree | baacb4fd3b98467a735071d6d42e3779c6b4b284 /include | |
parent | c2c2822673cba3428e3b7506740b39c13f26bfcb (diff) | |
download | libtracefs-b06e5b8731c59a19be31c68dacecd272269919e7.tar.gz |
libtracefs: Add tracefs_load_cmdlines() API
While writing a program using the libtracefs routines, I had to load the
tep handle before tracing to see what events were available before
starting the trace. Loading the mappings of pids to comms is best done
after the trace as the saved_cmdlines file gets filled by the trace. Since
the loading was already done at the beginning, I needed a way to load it
again when the trace was over.
Add tracefs_load_cmdlines() API to be able to accomplish this.
Link: https://lore.kernel.org/linux-trace-devel/20210409214000.5f9dc904@oasis.local.home
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/tracefs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tracefs.h b/include/tracefs.h index 2dc29b3..55ee867 100644 --- a/include/tracefs.h +++ b/include/tracefs.h @@ -94,6 +94,8 @@ struct tep_handle *tracefs_local_events_system(const char *tracing_dir, int tracefs_fill_local_events(const char *tracing_dir, struct tep_handle *tep, int *parsing_failures); +int tracefs_load_cmdlines(const char *tracing_dir, struct tep_handle *tep); + char *tracefs_get_clock(struct tracefs_instance *instance); enum tracefs_option_id { |