summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/clockid.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2020-08-05 11:34:39 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-08-06 09:33:57 -0300
commitcc3365bbd07c26aa2e4c7435068292e03116d4e7 (patch)
tree444e91ed91f01874292d20139ece3eb5940b63a6 /tools/perf/util/clockid.h
parent6953beb4ddab87ad00029d8a11c1f985df09981e (diff)
downloadlinux-stable-cc3365bbd07c26aa2e4c7435068292e03116d4e7.tar.gz
linux-stable-cc3365bbd07c26aa2e4c7435068292e03116d4e7.tar.bz2
linux-stable-cc3365bbd07c26aa2e4c7435068292e03116d4e7.zip
perf tools: Add clockid_name function
Add the clockid_name() function to get the clock name based on its clockid. It will be used in the following changes. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Geneviève Bastien <gbastien@versatic.net> Cc: Ian Rogers <irogers@google.com> Cc: Jeremie Galarneau <jgalar@efficios.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lore.kernel.org/lkml/20200805093444.314999-3-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/clockid.h')
-rw-r--r--tools/perf/util/clockid.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/clockid.h b/tools/perf/util/clockid.h
index 8e567b3ebbbd..9b49b4711c76 100644
--- a/tools/perf/util/clockid.h
+++ b/tools/perf/util/clockid.h
@@ -6,4 +6,6 @@
struct option;
int parse_clockid(const struct option *opt, const char *str, int unset);
+const char *clockid_name(clockid_t clk_id);
+
#endif