From patchwork Sun Oct 17 21:14:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Olsa X-Patchwork-Id: 12564611 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 390FEC433EF for ; Sun, 17 Oct 2021 21:15:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1A29560F56 for ; Sun, 17 Oct 2021 21:15:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344623AbhJQVRM (ORCPT ); Sun, 17 Oct 2021 17:17:12 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:41715 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232561AbhJQVRL (ORCPT ); Sun, 17 Oct 2021 17:17:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634505300; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=FRy9bwvZsJvWv4Af9Z5HsgohV/baKvxzAPxWjKJBPXI=; b=e3Aa4A/l6iiCr90PSHbmi2tl9Ky7XppRz8TQm9qw/ciX7+oVoQki+vd0qG9jlz2kupN3W6 x0utiTdBfj8XYZxhJ5x/pEoDcC8Z6LHD313RQSuuhaUbU9xnk9F3tRPdbZ8u8d1wWSYn+8 0wCySNNPvcNmnah514uwB0vHbrbk4QM= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-366-Jz0KEk7TP_a8l7wgVk7mrw-1; Sun, 17 Oct 2021 17:14:59 -0400 X-MC-Unique: Jz0KEk7TP_a8l7wgVk7mrw-1 Received: by mail-wr1-f69.google.com with SMTP id r16-20020adfb1d0000000b00160bf8972ceso7889139wra.13 for ; Sun, 17 Oct 2021 14:14:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FRy9bwvZsJvWv4Af9Z5HsgohV/baKvxzAPxWjKJBPXI=; b=IPzL9Sz3+sd4iOtOvJsP3wdV0jyh72BUDQGvr9FM3+gYrrxtrYhPPJsEx6rm0jrL8K 4GRDb+p6m7NYXQMyRBJt44qw67pA0+067ynhDBCtgpkeNjeqAR21KXRCk9ASd1IbeWIK bDe3WFrZ6ysTukNpAE+kn0+zTJumdnN75ERE2xCm/HFnS/2BpusbWhL08PucKJ6rOH7E nPUpWBIvaGxO8XxGL0UY/DXPrSQr2e7zNvY7SaMQU6mLXuFpRMM7EjV4zJPl3CjYGQfP RutWAbzrysO1KSyq3Z8ygvLQ3Xz0INq1fNzF/cOosVRsusd+EyZN08tqI9kCfaCjY2tq d+xw== X-Gm-Message-State: AOAM530XKs/4ulI3gOAvrAHWhgysDi6qkbq99/916XzOVKZyCv7+XGFp d8s+nnU2B6QWusAqY1JJhbSEOLdpMHa/HTgA1Bttij9J43/ZLAaS3gLHYqKDxnHux6hqVV4ae4y znTourA+5JZLzHeKx X-Received: by 2002:adf:9791:: with SMTP id s17mr30276206wrb.122.1634505298404; Sun, 17 Oct 2021 14:14:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0JZXfKOigWsN3W5rdhjJNq/c+D3QKjRn7R5w5HK6ebUis5XeuRhpaedp/NVgzsSOO7QhOfQ== X-Received: by 2002:adf:9791:: with SMTP id s17mr30276191wrb.122.1634505298233; Sun, 17 Oct 2021 14:14:58 -0700 (PDT) Received: from krava.cust.in.nbox.cz ([83.240.63.48]) by smtp.gmail.com with ESMTPSA id t11sm10788829wrz.65.2021.10.17.14.14.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Oct 2021 14:14:57 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh Subject: [PATCH bpf-next 1/3] selftests/bpf: Fix perf_buffer test on system with offline cpus Date: Sun, 17 Oct 2021 23:14:55 +0200 Message-Id: <20211017211457.343768-1-jolsa@kernel.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net The perf_buffer fails on system with offline cpus: # test_progs -t perf_buffer test_perf_buffer:PASS:nr_cpus 0 nsec test_perf_buffer:PASS:nr_on_cpus 0 nsec test_perf_buffer:PASS:skel_load 0 nsec test_perf_buffer:PASS:attach_kprobe 0 nsec test_perf_buffer:PASS:perf_buf__new 0 nsec test_perf_buffer:PASS:epoll_fd 0 nsec skipping offline CPU #24 skipping offline CPU #25 skipping offline CPU #26 skipping offline CPU #27 skipping offline CPU #28 skipping offline CPU #29 skipping offline CPU #30 skipping offline CPU #31 test_perf_buffer:PASS:perf_buffer__poll 0 nsec test_perf_buffer:PASS:seen_cpu_cnt 0 nsec test_perf_buffer:FAIL:buf_cnt got 24, expected 32 Summary: 0/0 PASSED, 0 SKIPPED, 1 FAILED Changing the test to check online cpus instead of possible. Signed-off-by: Jiri Olsa --- tools/testing/selftests/bpf/prog_tests/perf_buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/bpf/prog_tests/perf_buffer.c b/tools/testing/selftests/bpf/prog_tests/perf_buffer.c index 6979aff4aab2..877600392851 100644 --- a/tools/testing/selftests/bpf/prog_tests/perf_buffer.c +++ b/tools/testing/selftests/bpf/prog_tests/perf_buffer.c @@ -107,8 +107,8 @@ void serial_test_perf_buffer(void) "expect %d, seen %d\n", nr_on_cpus, CPU_COUNT(&cpu_seen))) goto out_free_pb; - if (CHECK(perf_buffer__buffer_cnt(pb) != nr_cpus, "buf_cnt", - "got %zu, expected %d\n", perf_buffer__buffer_cnt(pb), nr_cpus)) + if (CHECK(perf_buffer__buffer_cnt(pb) != nr_on_cpus, "buf_cnt", + "got %zu, expected %d\n", perf_buffer__buffer_cnt(pb), nr_on_cpus)) goto out_close; for (i = 0; i < nr_cpus; i++) { From patchwork Sun Oct 17 21:14:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Olsa X-Patchwork-Id: 12564613 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F1C4C433EF for ; Sun, 17 Oct 2021 21:15:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 01CC860F0F for ; Sun, 17 Oct 2021 21:15:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344648AbhJQVRT (ORCPT ); Sun, 17 Oct 2021 17:17:19 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:38372 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232561AbhJQVRS (ORCPT ); Sun, 17 Oct 2021 17:17:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634505308; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4VzWi77FQT/0Gb/rWzZ26Ywd1gYA6zkvj3gNqaGZ5jw=; b=WHnlRO+IENdO16S6GuBk4duPL/X9lIldUc5/+AOxyt4QsidiU4IDghdy1HXzCXp78khQd/ lxdOSGyOubYin8xVYf58djJw++0ouIOfmMvriCys7vvXSPH7rsp4TK4MgyDqFoV8HtQs4A CEJEPslGwVyY0eatXfedRfcOAa9fKMk= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-545-IDYMyx4pOqukuSaI0AHPUg-1; Sun, 17 Oct 2021 17:15:05 -0400 X-MC-Unique: IDYMyx4pOqukuSaI0AHPUg-1 Received: by mail-wr1-f71.google.com with SMTP id j12-20020adf910c000000b0015e4260febdso905133wrj.20 for ; Sun, 17 Oct 2021 14:15:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4VzWi77FQT/0Gb/rWzZ26Ywd1gYA6zkvj3gNqaGZ5jw=; b=UYJI+BK2IFOJZp49a7qQwXvSiPpvBFXretpB0m9h2zZZjtZaB80jfNhHwkYmxL0Kr3 HUXNunZU+nUlC1m/lVPuf4SPSq9H50uEEj2VZxgKikma0v0FeTqET7lLwq6NyG5EIGkP +F/HuWb1BU4ogozw89X9qefIydI2o38sfxod5/kznpaH4XLI06w5jVSvBFjdgeFP2yt9 5wlekVxKufT5esUU6nVJHfsGutbLSQRVcbPHFP+yzeWmzPFvptGZNAE1mtd5YpWiEDax mtbjumbweRcEVRDsbNoILiKDMYg71uGTIOigeBdolUsQti1TqLAyv4d5PwUUZEXxde2c iV5w== X-Gm-Message-State: AOAM531Kmih1h2WTxMFHz5o+egg+bToqi1eVSOlzxiud994PyGUxEYJC pSCfOT9RNo8btOCyK8AgUCN2U1SwWRBlsR0TLg0spet31EkllF84EqK/r9Sja1BQY8O7ig002vi wFwRxyHQ9SaVGrXBg X-Received: by 2002:a5d:64ed:: with SMTP id g13mr30883728wri.193.1634505304492; Sun, 17 Oct 2021 14:15:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynkdPbLe3xnBsnIKZAqezb81hDHLi4pSZ4wTjDBBXJV/n9svsTwoVCbq2oOd45i+EK4oHrpA== X-Received: by 2002:a5d:64ed:: with SMTP id g13mr30883716wri.193.1634505304336; Sun, 17 Oct 2021 14:15:04 -0700 (PDT) Received: from krava.cust.in.nbox.cz ([83.240.63.48]) by smtp.gmail.com with ESMTPSA id c185sm10847927wma.8.2021.10.17.14.15.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Oct 2021 14:15:04 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh Subject: [PATCH bpf-next 2/3] selftests/bpf: Fix possible/online index mismatch in perf_buffer test Date: Sun, 17 Oct 2021 23:14:56 +0200 Message-Id: <20211017211457.343768-2-jolsa@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211017211457.343768-1-jolsa@kernel.org> References: <20211017211457.343768-1-jolsa@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net The perf_buffer fails on system with offline cpus: # test_progs -t perf_buffer serial_test_perf_buffer:PASS:nr_cpus 0 nsec serial_test_perf_buffer:PASS:nr_on_cpus 0 nsec serial_test_perf_buffer:PASS:skel_load 0 nsec serial_test_perf_buffer:PASS:attach_kprobe 0 nsec serial_test_perf_buffer:PASS:perf_buf__new 0 nsec serial_test_perf_buffer:PASS:epoll_fd 0 nsec skipping offline CPU #4 serial_test_perf_buffer:PASS:perf_buffer__poll 0 nsec serial_test_perf_buffer:PASS:seen_cpu_cnt 0 nsec serial_test_perf_buffer:PASS:buf_cnt 0 nsec ... serial_test_perf_buffer:PASS:fd_check 0 nsec serial_test_perf_buffer:PASS:drain_buf 0 nsec serial_test_perf_buffer:PASS:consume_buf 0 nsec serial_test_perf_buffer:FAIL:cpu_seen cpu 5 not seen #88 perf_buffer:FAIL Summary: 0/0 PASSED, 0 SKIPPED, 1 FAILED If the offline cpu is from the middle of the possible set, we get mismatch with possible and online cpu buffers. The perf buffer test calls perf_buffer__consume_buffer for all 'possible' cpus, but the library holds only 'online' cpu buffers and perf_buffer__consume_buffer returns them based on index. Adding extra (online) index to keep track of online buffers, we need the original (possible) index to trigger trace on proper cpu. Signed-off-by: Jiri Olsa --- .../testing/selftests/bpf/prog_tests/perf_buffer.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/bpf/prog_tests/perf_buffer.c b/tools/testing/selftests/bpf/prog_tests/perf_buffer.c index 877600392851..0b0cd045979b 100644 --- a/tools/testing/selftests/bpf/prog_tests/perf_buffer.c +++ b/tools/testing/selftests/bpf/prog_tests/perf_buffer.c @@ -45,7 +45,7 @@ int trigger_on_cpu(int cpu) void serial_test_perf_buffer(void) { - int err, on_len, nr_on_cpus = 0, nr_cpus, i; + int err, on_len, nr_on_cpus = 0, nr_cpus, i, j; struct perf_buffer_opts pb_opts = {}; struct test_perf_buffer *skel; cpu_set_t cpu_seen; @@ -111,15 +111,15 @@ void serial_test_perf_buffer(void) "got %zu, expected %d\n", perf_buffer__buffer_cnt(pb), nr_on_cpus)) goto out_close; - for (i = 0; i < nr_cpus; i++) { + for (i = 0, j = 0; i < nr_cpus; i++) { if (i >= on_len || !online[i]) continue; - fd = perf_buffer__buffer_fd(pb, i); + fd = perf_buffer__buffer_fd(pb, j); CHECK(fd < 0 || last_fd == fd, "fd_check", "last fd %d == fd %d\n", last_fd, fd); last_fd = fd; - err = perf_buffer__consume_buffer(pb, i); + err = perf_buffer__consume_buffer(pb, j); if (CHECK(err, "drain_buf", "cpu %d, err %d\n", i, err)) goto out_close; @@ -127,12 +127,13 @@ void serial_test_perf_buffer(void) if (trigger_on_cpu(i)) goto out_close; - err = perf_buffer__consume_buffer(pb, i); - if (CHECK(err, "consume_buf", "cpu %d, err %d\n", i, err)) + err = perf_buffer__consume_buffer(pb, j); + if (CHECK(err, "consume_buf", "cpu %d, err %d\n", j, err)) goto out_close; if (CHECK(!CPU_ISSET(i, &cpu_seen), "cpu_seen", "cpu %d not seen\n", i)) goto out_close; + j++; } out_free_pb: From patchwork Sun Oct 17 21:14:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Olsa X-Patchwork-Id: 12564615 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4633BC433F5 for ; Sun, 17 Oct 2021 21:15:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 259F561027 for ; Sun, 17 Oct 2021 21:15:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344643AbhJQVRX (ORCPT ); Sun, 17 Oct 2021 17:17:23 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:56450 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232561AbhJQVRX (ORCPT ); Sun, 17 Oct 2021 17:17:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634505312; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=srAxXppIvHz+myMAl+rb3OMXLAjwG2sT2dL0Sifr8SY=; b=bN5SSSssFaoaLgOmQRU/VrHfBvwpKHnQ1CDH0WlcA7gFRGi/v/21DWDU84kYsh9770bAs3 H05dcILiXc2Kz/9v7ZpK6FQeOWuPDsLi6ky30r9yVyhiwcUgUkjCrLrUKUMr+FmZcUWxwN nVXeIX0YHkND2ZRRqD1nG5HyIAt1P3Y= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-302-6IfnMLzOP9GJda4LAsMLkg-1; Sun, 17 Oct 2021 17:15:11 -0400 X-MC-Unique: 6IfnMLzOP9GJda4LAsMLkg-1 Received: by mail-wr1-f72.google.com with SMTP id r16-20020adfb1d0000000b00160bf8972ceso7889309wra.13 for ; Sun, 17 Oct 2021 14:15:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=srAxXppIvHz+myMAl+rb3OMXLAjwG2sT2dL0Sifr8SY=; b=uI/Z/npeCMYj5nrN2CvAiYGISX6th0aK4gAK6kiRv2VkjBhlpJLrxRvj853LJ9VQQP 7IO7krBTk0ADguMGPF1L0CnjKMe9kTaENKkKpF27QkmAte6/KqiBbAgl8Dz7a0hsUETy O7xdMXMYzDhGVTTqfKLe8NQtf2VzB6mpiCR7M/3cwuvQvGpUVilIzynCrOZzlBEYy/Od MyOPoraWdGWoZpZ+DqizQPz252pOeIJzfPGYaEM0JPiuindD2+mKAgWjHrTq0XAmYWRY OFL9jfqxCgxIwveHaa8uJf7h07DtcW5h8Q9/XZehbnZOoxRWZTQ1T+HN8yh5SH7lgq3s +efg== X-Gm-Message-State: AOAM530RomRIEQFLue/j7np1XUYgtMYars1MwBO9ZJpcZUQeKlNFjain ZhwisvtSHwPryzI8v2V7DaIrLmYZWKEoHpOofQM3fJdERc+mN9R6XaA8GEPaF7lwCtRbAsiT7jz vbr7dShpb+6Wu X-Received: by 2002:a5d:4563:: with SMTP id a3mr30702554wrc.198.1634505310422; Sun, 17 Oct 2021 14:15:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8GDujnnlYrDZ6vz0cWuCOjpMhoco6bgO3eFsSttDzPYk0xUFvblndr4yRkPOE120t1DCMtQ== X-Received: by 2002:a5d:4563:: with SMTP id a3mr30702543wrc.198.1634505310287; Sun, 17 Oct 2021 14:15:10 -0700 (PDT) Received: from krava.cust.in.nbox.cz ([83.240.63.48]) by smtp.gmail.com with ESMTPSA id c132sm16905985wma.22.2021.10.17.14.15.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Oct 2021 14:15:10 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh Subject: [PATCH bpf-next 3/3] selftests/bpf: Use nanosleep tracepoint in perf buffer test Date: Sun, 17 Oct 2021 23:14:57 +0200 Message-Id: <20211017211457.343768-3-jolsa@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211017211457.343768-1-jolsa@kernel.org> References: <20211017211457.343768-1-jolsa@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net The perf buffer tests triggers trace with nanosleep syscall, but monitors all syscalls, which results in lot of data in the buffer and makes it harder to debug. Let's lower the trace traffic and monitor just nanosleep syscall. Signed-off-by: Jiri Olsa --- tools/testing/selftests/bpf/progs/test_perf_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/progs/test_perf_buffer.c b/tools/testing/selftests/bpf/progs/test_perf_buffer.c index d37ce29fd393..a08874c5bdf2 100644 --- a/tools/testing/selftests/bpf/progs/test_perf_buffer.c +++ b/tools/testing/selftests/bpf/progs/test_perf_buffer.c @@ -12,7 +12,7 @@ struct { __type(value, int); } perf_buf_map SEC(".maps"); -SEC("tp/raw_syscalls/sys_enter") +SEC("tp/syscalls/sys_enter_nanosleep") int handle_sys_enter(void *ctx) { int cpu = bpf_get_smp_processor_id();