diff options
Diffstat (limited to 'tools/perf/util/event.c')
-rw-r--r-- | tools/perf/util/event.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index 966d207a1509..dc13cad828d7 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c | |||
@@ -227,7 +227,12 @@ static int find_symbol_cb(void *arg, const char *name, char type, u64 start) | |||
227 | { | 227 | { |
228 | struct process_symbol_args *args = arg; | 228 | struct process_symbol_args *args = arg; |
229 | 229 | ||
230 | if (!symbol_type__is_a(type, MAP__FUNCTION) || strcmp(name, args->name)) | 230 | /* |
231 | * Must be a function or at least an alias, as in PARISC64, where "_text" is | ||
232 | * an 'A' to the same address as "_stext". | ||
233 | */ | ||
234 | if (!(symbol_type__is_a(type, MAP__FUNCTION) || | ||
235 | type == 'A') || strcmp(name, args->name)) | ||
231 | return 0; | 236 | return 0; |
232 | 237 | ||
233 | args->start = start; | 238 | args->start = start; |