aboutsummaryrefslogtreecommitdiff
path: root/include/linux/oprofile.h
diff options
context:
space:
mode:
authorMatt Fleming <matt@console-pimps.org>2010-10-08 21:42:17 +0100
committerRobert Richter <robert.richter@amd.com>2010-10-11 17:46:15 +0200
commit56946331b28d53232115a155ba662ab3dc598952 (patch)
treef0534248dc0638894e72e60c16cfb3e8790e48e7 /include/linux/oprofile.h
parent84c7991059c9c4530cc911137c5bf508a41ed129 (diff)
downloadlinux-linaro-stable-56946331b28d53232115a155ba662ab3dc598952.tar.gz
oprofile: Make op_name_from_perf_id() global
Make op_name_from_perf_id() global so that we have a way for each architecture to construct an oprofile name for op->cpu_type. We need to remove the argument from the function prototype so that we can hide all implementation details inside the function. Signed-off-by: Matt Fleming <matt@console-pimps.org> Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'include/linux/oprofile.h')
-rw-r--r--include/linux/oprofile.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/oprofile.h b/include/linux/oprofile.h
index 5171639ecf0f..1574d4aca721 100644
--- a/include/linux/oprofile.h
+++ b/include/linux/oprofile.h
@@ -185,4 +185,8 @@ int oprofile_add_data(struct op_entry *entry, unsigned long val);
int oprofile_add_data64(struct op_entry *entry, u64 val);
int oprofile_write_commit(struct op_entry *entry);
+#ifdef CONFIG_PERF_EVENTS
+char *op_name_from_perf_id(void);
+#endif /* CONFIG_PERF_EVENTS */
+
#endif /* OPROFILE_H */