Skip to content

Commit b58230d

Browse files
committed
perf python: Add perf_env stubs that will be needed in evsel__open_strerror()
The AMD IBS error message enhancements will use these, but we're not using evsel__open_strerror() in the python binding so far. Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent ae0f4eb commit b58230d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tools/perf/util/python.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,21 @@ int parse_callchain_record(const char *arg __maybe_unused,
5858
}
5959

6060
/*
61-
* Add this one here not to drag util/env.c
61+
* Add these not to drag util/env.c
6262
*/
6363
struct perf_env perf_env;
6464

65+
const char *perf_env__cpuid(struct perf_env *env __maybe_unused)
66+
{
67+
return NULL;
68+
}
69+
70+
// This one is a bit easier, wouldn't drag too much, but leave it as a stub we need it here
71+
const char *perf_env__arch(struct perf_env *env __maybe_unused)
72+
{
73+
return NULL;
74+
}
75+
6576
/*
6677
* Add this one here not to drag util/stat-shadow.c
6778
*/

0 commit comments

Comments
 (0)