summaryrefslogtreecommitdiff
path: root/tools/perf/util/topdown.h
diff options
context:
space:
mode:
authorKan Liang <kan.liang@linux.intel.com>2020-09-11 07:48:05 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-09-17 15:47:55 -0300
commit687986bbeb668068d39a47658edf4d7a6414eefb (patch)
tree9e11e21b91c62f1bbba86effb82860e35ab01691 /tools/perf/util/topdown.h
parentc57f5eaa094ee93b4e27f6624349bc90d41a4e68 (diff)
perf tools: Rename group to topdown
The group.h/c only include TopDown group related functions. The name "group" is too generic and inaccurate. Use the name "topdown" to replace it. Move topdown related functions to a dedicated file, topdown.c. Signed-off-by: Kan Liang <kan.liang@linux.intel.com> Acked-by: Jiri Olsa <jolsa@redhat.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Andi Kleen <ak@linux.intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lore.kernel.org/lkml/20200911144808.27603-2-kan.liang@linux.intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/topdown.h')
-rw-r--r--tools/perf/util/topdown.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/util/topdown.h b/tools/perf/util/topdown.h
new file mode 100644
index 000000000000..e3d70e95f4f1
--- /dev/null
+++ b/tools/perf/util/topdown.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef TOPDOWN_H
+#define TOPDOWN_H 1
+
+bool arch_topdown_check_group(bool *warn);
+void arch_topdown_group_warn(void);
+
+int topdown_filter_events(const char **attr, char **str, bool use_group);
+
+#endif