lkml.org 
[lkml]   [2023]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH v1 5/5] perf test: Detect off-cpu support from build options
    From
    Use perf version to detect whether BPF skeletons were enabled in a
    build rather than a failing perf record.

    Signed-off-by: Ian Rogers <irogers@google.com>
    ---
    tools/perf/tests/shell/record_offcpu.sh | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/tools/perf/tests/shell/record_offcpu.sh b/tools/perf/tests/shell/record_offcpu.sh
    index a0d14cd0aa79..a1ef8f0d2b5c 100755
    --- a/tools/perf/tests/shell/record_offcpu.sh
    +++ b/tools/perf/tests/shell/record_offcpu.sh
    @@ -28,7 +28,7 @@ test_offcpu_priv() {
    err=2
    return
    fi
    - if perf record --off-cpu -o /dev/null --quiet true 2>&1 | grep BUILD_BPF_SKEL
    + if perf version --build-options 2>&1 | grep HAVE_BPF_SKEL | grep -q OFF
    then
    echo "off-cpu test [Skipped missing BPF support]"
    err=2
    --
    2.42.0.459.ge4e396fd5e-goog
    \
     
     \ /
      Last update: 2023-09-14 23:21    [W:2.836 / U:1.128 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site