aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/api/fs/tracing_path.h
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2022-11-14 13:07:16 -0800
committerArnaldo Carvalho de Melo <[email protected]>2022-11-15 10:24:09 -0300
commit1504b6f97bad166b484d6f27dc99746fdca5f467 (patch)
tree2c4747a0b34073283c99585a63e241052ab3dbb2 /tools/lib/api/fs/tracing_path.h
parentfe13d43d07393f46957c2fc09f09f097f7969a5d (diff)
tools lib api fs tracing_path: Add scandir alphasort
tracing_events__opendir() allows iteration over files in <debugfs>/tracing/events but with an arbitrary sort order. Add a scandir alternative where the results are alphabetically sorted. Signed-off-by: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Caleb Biggers <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kajol Jain <[email protected]> Cc: Kan Liang <[email protected]> Cc: Leo Yan <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Perry Taylor <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ravi Bangoria <[email protected]> Cc: Rob Herring <[email protected]> Cc: Sandipan Das <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Weilin Wang <[email protected]> Cc: Xin Gao <[email protected]> Cc: Xing Zhengjun <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.h')
-rw-r--r--tools/lib/api/fs/tracing_path.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/api/fs/tracing_path.h b/tools/lib/api/fs/tracing_path.h
index a19136b086dc..fc6347c11deb 100644
--- a/tools/lib/api/fs/tracing_path.h
+++ b/tools/lib/api/fs/tracing_path.h
@@ -6,6 +6,7 @@
#include <dirent.h>
DIR *tracing_events__opendir(void);
+int tracing_events__scandir_alphasort(struct dirent ***namelist);
void tracing_path_set(const char *mountpoint);
const char *tracing_path_mount(void);