Since the kernels CONFIG_PERF_COUNTERS config option """has been obsoleted by the PERF_EVENTS config option - please see that one for details.
It has no effect on the kernel whether you enable it or not, it is a compatibility placeholdera """ according to init/Kconfig we can drop this from the error message and just rely on CONFIG_PERF_EVENTS only. This patch thus drops CONFIG_PERF_COUNTERS from the error message (and also removes the unnecessary translation of the config options). Signed-off-by: Peter Huewe <[email protected]> --- perf/perf.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/perf/perf.cpp b/perf/perf.cpp index 5045424..80ed9aa 100644 --- a/perf/perf.cpp +++ b/perf/perf.cpp @@ -118,7 +118,7 @@ void perf_event::create_perf_event(char *eventname, int _cpu) reset_display(); fprintf(stderr, _("PowerTOP %s needs the kernel to support the 'perf' subsystem\n"), POWERTOP_VERSION); fprintf(stderr, _("as well as support for trace points in the kernel:\n")); - fprintf(stderr, _("CONFIG_PERF_EVENTS=y\nCONFIG_PERF_COUNTERS=y\nCONFIG_TRACEPOINTS=y\nCONFIG_TRACING=y\n")); + fprintf(stderr, "CONFIG_PERF_EVENTS=y\nCONFIG_TRACEPOINTS=y\nCONFIG_TRACING=y\n"); exit(EXIT_FAILURE); } if (read(perf_fd, &read_data, sizeof(read_data)) == -1) { -- 1.7.3.4 _______________________________________________ Power mailing list [email protected] https://bughost.org/mailman/listinfo/power
