Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <acme@redhat.com>

+12 -1
+12 -1
tools/perf/util/python.c
··· 58 58 } 59 59 60 60 /* 61 - * Add this one here not to drag util/env.c 61 + * Add these not to drag util/env.c 62 62 */ 63 63 struct perf_env perf_env; 64 + 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 + } 64 75 65 76 /* 66 77 * Add this one here not to drag util/stat-shadow.c