summaryrefslogtreecommitdiff
path: root/tools/perf/util/clockid.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2020-08-05 12:34:38 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-08-06 15:30:52 +0300
commit6953beb4ddab87ad00029d8a11c1f985df09981e (patch)
tree1945cf6fecc846360d93d22f40fa62b93672d13a /tools/perf/util/clockid.h
parent7d65864b3b4fcc106d147f8a03bce7f8354f8984 (diff)
downloadlinux-6953beb4ddab87ad00029d8a11c1f985df09981e.tar.xz
perf clockid: Move parse_clockid() to new clockid object
Move parse_clockid and all needed clcckid related stuff into clockid object. We are going to add clockid_name function in following change, so it's better it's placed in separated object and not in builtin-record.c. No functional change is intended. 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-2-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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/util/clockid.h b/tools/perf/util/clockid.h
new file mode 100644
index 000000000000..8e567b3ebbbd
--- /dev/null
+++ b/tools/perf/util/clockid.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#ifndef __PERF_CLOCKID_H
+#define __PERF_CLOCKID_H
+
+struct option;
+int parse_clockid(const struct option *opt, const char *str, int unset);
+
+#endif