summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/demangle-java.h
diff options
context:
space:
mode:
authorStephane Eranian <eranian@google.com>2015-11-30 10:02:20 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-02-05 09:46:45 -0300
commite9c4bcdd349eb00f6c704450a063b3dcbea25864 (patch)
treeb752eab688b7b92b08e0881c5159bdb9690e9f83 /tools/perf/util/demangle-java.h
parent89fee59b504f86925894fcc9ba79d5c933842f93 (diff)
downloadtalos-obmc-linux-e9c4bcdd349eb00f6c704450a063b3dcbea25864.tar.gz
talos-obmc-linux-e9c4bcdd349eb00f6c704450a063b3dcbea25864.zip
perf symbols: add Java demangling support
Add Java function descriptor demangling support. Something bfd cannot do. Use the JAVA_DEMANGLE_NORET flag to avoid decoding the return type of functions. Signed-off-by: Stephane Eranian <eranian@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Carl Love <cel@us.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: John McCutchan <johnmccutchan@google.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Pawel Moll <pawel.moll@arm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Sonny Rao <sonnyrao@chromium.org> Cc: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> Link: http://lkml.kernel.org/r/1448874143-7269-2-git-send-email-eranian@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/demangle-java.h')
-rw-r--r--tools/perf/util/demangle-java.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/util/demangle-java.h b/tools/perf/util/demangle-java.h
new file mode 100644
index 000000000000..a981c1f968fe
--- /dev/null
+++ b/tools/perf/util/demangle-java.h
@@ -0,0 +1,10 @@
+#ifndef __PERF_DEMANGLE_JAVA
+#define __PERF_DEMANGLE_JAVA 1
+/*
+ * demangle function flags
+ */
+#define JAVA_DEMANGLE_NORET 0x1 /* do not process return type */
+
+char * java_demangle_sym(const char *str, int flags);
+
+#endif /* __PERF_DEMANGLE_JAVA */
OpenPOWER on IntegriCloud