Skip to content

Commit

Permalink
perf python: Add perf_env stubs that will be needed in evsel__open_st…
Browse files Browse the repository at this point in the history
…rerror()

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 <acme@redhat.com>
  • Loading branch information
Arnaldo Carvalho de Melo committed Mar 26, 2022
1 parent ae0f4eb commit b58230d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tools/perf/util/python.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,21 @@ int parse_callchain_record(const char *arg __maybe_unused,
}

/*
* Add this one here not to drag util/env.c
* Add these not to drag util/env.c
*/
struct perf_env perf_env;

const char *perf_env__cpuid(struct perf_env *env __maybe_unused)
{
return NULL;
}

// This one is a bit easier, wouldn't drag too much, but leave it as a stub we need it here
const char *perf_env__arch(struct perf_env *env __maybe_unused)
{
return NULL;
}

/*
* Add this one here not to drag util/stat-shadow.c
*/
Expand Down

0 comments on commit b58230d

Please sign in to comment.