diff options
author | Tom Zanussi <tzanussi@gmail.com> | 2009-11-30 02:18:48 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-30 03:04:00 -0500 |
commit | 61381de0504181368672a83d2e14c38dbaf3c136 (patch) | |
tree | 3c3ab8855ea2807b7eb354c79684200291a40ebe /tools/perf/util | |
parent | e136323c5a8a7d91d17c5b7b340758bb9dd33739 (diff) |
perf trace/scripting: Fix Perl common_* access functions
The common_* functions (e.g. common_pc(), etc) are exported as
common_* but named get_common_*, resulting in unresolved
subroutine errors when executing scripts.
Make the internal and external names match.
Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: fweisbec@gmail.com
Cc: rostedt@goodmis.org
Cc: anton@samba.org
Cc: hch@infradead.org
LKML-Reference: <1259565529-6407-4-git-send-email-tzanussi@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/trace-event-perl.c | 6 | ||||
-rw-r--r-- | tools/perf/util/trace-event-perl.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/perf/util/trace-event-perl.c b/tools/perf/util/trace-event-perl.c index d179adebc547..2e1cc3c11c70 100644 --- a/tools/perf/util/trace-event-perl.c +++ b/tools/perf/util/trace-event-perl.c | |||
@@ -242,7 +242,7 @@ static inline struct event *find_cache_event(int type) | |||
242 | return event; | 242 | return event; |
243 | } | 243 | } |
244 | 244 | ||
245 | int get_common_pc(struct scripting_context *context) | 245 | int common_pc(struct scripting_context *context) |
246 | { | 246 | { |
247 | int pc; | 247 | int pc; |
248 | 248 | ||
@@ -251,7 +251,7 @@ int get_common_pc(struct scripting_context *context) | |||
251 | return pc; | 251 | return pc; |
252 | } | 252 | } |
253 | 253 | ||
254 | int get_common_flags(struct scripting_context *context) | 254 | int common_flags(struct scripting_context *context) |
255 | { | 255 | { |
256 | int flags; | 256 | int flags; |
257 | 257 | ||
@@ -260,7 +260,7 @@ int get_common_flags(struct scripting_context *context) | |||
260 | return flags; | 260 | return flags; |
261 | } | 261 | } |
262 | 262 | ||
263 | int get_common_lock_depth(struct scripting_context *context) | 263 | int common_lock_depth(struct scripting_context *context) |
264 | { | 264 | { |
265 | int lock_depth; | 265 | int lock_depth; |
266 | 266 | ||
diff --git a/tools/perf/util/trace-event-perl.h b/tools/perf/util/trace-event-perl.h index 666a864f5dda..8fe0d866fe1a 100644 --- a/tools/perf/util/trace-event-perl.h +++ b/tools/perf/util/trace-event-perl.h | |||
@@ -44,8 +44,8 @@ struct scripting_context { | |||
44 | void *event_data; | 44 | void *event_data; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | int get_common_pc(struct scripting_context *context); | 47 | int common_pc(struct scripting_context *context); |
48 | int get_common_flags(struct scripting_context *context); | 48 | int common_flags(struct scripting_context *context); |
49 | int get_common_lock_depth(struct scripting_context *context); | 49 | int common_lock_depth(struct scripting_context *context); |
50 | 50 | ||
51 | #endif /* __PERF_TRACE_EVENT_PERL_H */ | 51 | #endif /* __PERF_TRACE_EVENT_PERL_H */ |