|
|
@@ -2447,6 +2447,10 @@ static int find_probe_functions(struct map *map, char *name)
|
|
|
#define strdup_or_goto(str, label) \
|
|
|
({ char *__p = strdup(str); if (!__p) goto label; __p; })
|
|
|
|
|
|
+void __weak arch__fix_tev_from_maps(struct perf_probe_event *pev __maybe_unused,
|
|
|
+ struct probe_trace_event *tev __maybe_unused,
|
|
|
+ struct map *map __maybe_unused) { }
|
|
|
+
|
|
|
/*
|
|
|
* Find probe function addresses from map.
|
|
|
* Return an error or the number of found probe_trace_event
|
|
|
@@ -2553,6 +2557,7 @@ static int find_probe_trace_events_from_map(struct perf_probe_event *pev,
|
|
|
strdup_or_goto(pev->args[i].type,
|
|
|
nomem_out);
|
|
|
}
|
|
|
+ arch__fix_tev_from_maps(pev, tev, map);
|
|
|
}
|
|
|
|
|
|
out:
|