lkml.org 
[lkml]   [2022]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] perf test tsc: Fix error message report when not supported.
From
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

\
 
 \ /
  Last update: 2022-04-04 06:42    [W:0.486 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site