Messages in this thread | | | Date | Mon, 4 Apr 2022 07:41:59 +0300 | Subject | Re: [PATCH] perf test tsc: Fix error message report when not supported. | From | Adrian Hunter <> |
| |
On 02/04/2022 14.42, Chengdong Li wrote: > By default `perf test tsc` does not return the error message > when child process detected kernel does not support. Instead, child > process print error message to stderr, unfortunately the stderr is > redirected to /dev/null when verbose <= 0. > This patch add a helper function test__perf_test_tsc_skip_reason() to > help parent process to get the appropriate error message and force child > process returns TEST_SKIP instead of TEST_OK. > > Signed-off-by: Chengdong Li <chengdongli@tencent.com> > --- > tools/perf/tests/builtin-test.c | 3 +++ > tools/perf/tests/perf-time-to-tsc.c | 17 +++++++++++------ > tools/perf/tests/tests.h | 1 + > 3 files changed, 15 insertions(+), 6 deletions(-) >
Please base on current source, for example perf/core branch of:
git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git
| |