diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2013-06-26 03:14:04 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-07-12 12:46:00 -0400 |
commit | 167aedc44e1743777e6aee71b0fe7ed94c6298cd (patch) | |
tree | b569ee7287d043bef618b4c6f86ab71ff9db8389 /tools/perf/util/util.h | |
parent | fa1531fdd7b6332aa61bcc9fda495583acba460d (diff) |
perf util: Move debugfs/tracing helper functions to util.c
Since they're generic helpers move them to util.c so that they can be
used by others.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1372230862-15861-2-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/util.h')
-rw-r--r-- | tools/perf/util/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 2732fad03908..cc1574edcd9a 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h | |||
@@ -80,6 +80,9 @@ extern char buildid_dir[]; | |||
80 | extern char tracing_events_path[]; | 80 | extern char tracing_events_path[]; |
81 | extern void perf_debugfs_set_path(const char *mountpoint); | 81 | extern void perf_debugfs_set_path(const char *mountpoint); |
82 | const char *perf_debugfs_mount(const char *mountpoint); | 82 | const char *perf_debugfs_mount(const char *mountpoint); |
83 | const char *find_tracing_dir(void); | ||
84 | char *get_tracing_file(const char *name); | ||
85 | void put_tracing_file(char *file); | ||
83 | 86 | ||
84 | /* On most systems <limits.h> would have given us this, but | 87 | /* On most systems <limits.h> would have given us this, but |
85 | * not on some systems (e.g. GNU/Hurd). | 88 | * not on some systems (e.g. GNU/Hurd). |