From patchwork Thu Oct 21 11:41:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Olsa X-Patchwork-Id: 12574745 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 7169EC433FE for ; Thu, 21 Oct 2021 11:41:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 59291611BD for ; Thu, 21 Oct 2021 11:41:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230365AbhJULoN (ORCPT ); Thu, 21 Oct 2021 07:44:13 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:29793 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230375AbhJULoJ (ORCPT ); Thu, 21 Oct 2021 07:44:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634816513; 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=Ml8QgT+qYdLA+R3BA2kYMTfFaMksbXnT1bZRAL+QxEgw/H2Ap3yA1pk9qDmv75PI1SjFXW TlMkD+b0I1evLxaxgfL7A7TOLELIZioJ2zfMPtTXuhYDZtsio83rs0DJK+JkDKPzZRCCZ9 MSnyDgb2tHmITvcLwyr3jmoArS0Asec= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-339-NO4KkfDlPdui6iEzNrxDYg-1; Thu, 21 Oct 2021 07:41:52 -0400 X-MC-Unique: NO4KkfDlPdui6iEzNrxDYg-1 Received: by mail-ed1-f70.google.com with SMTP id d3-20020a056402516300b003db863a248eso23990488ede.16 for ; Thu, 21 Oct 2021 04:41:52 -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=qFEZV5nDay34bkSqlk3BT6QDNs9FNx3qkAIXJKSr7wiRgdQ+mR/p9bAMiTMw3sC05c IJwb0zpiljPivhgHRUj8H+81nPBvylLjFjh+8SjunZmlhZgnxvxbjbBCIUHS8rvVl6G+ fptKUtdzBrVWjYORR6o1AwsnBrcKJR9OkAmm5ZtXxfTnhcUTn9r5+ZknwKDtBvpJnv1g OhBhQncqE2S7c6dsduPEB34q8xVqJGnPVaVbgLaP20VTMQTzc/8qO5foSGCM26r99C/c Re8q/PiJJTZijNvQ3ksiIsTeDyBn5Me451IvshxeaArTZLqPRN8Oc0EEZyw/wXhQW+Cu F39w== X-Gm-Message-State: AOAM531ZoIhuA0dO2I4EVm8FePp+5dSO1pWUTeRjzvRFzJJPwqs9ljIN 2c1WUDY9mzyNTHZwwFMSqv2GLB9b3f+NSzszjNCOyjfZCOhlT//71relb3ZUFZwaqLEmTvnhUF0 Ek+2Tt7aLjreHz4yf X-Received: by 2002:a05:6402:50d4:: with SMTP id h20mr7009042edb.112.1634816511346; Thu, 21 Oct 2021 04:41:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNkiRG6MQhchj2BPeZhgF7KMFN9UW11wQbBPpenEdGJRKXrqcz/xS8eCT3E+oZ38nmMtm6RQ== X-Received: by 2002:a05:6402:50d4:: with SMTP id h20mr7009009edb.112.1634816511158; Thu, 21 Oct 2021 04:41:51 -0700 (PDT) Received: from krava.cust.in.nbox.cz ([83.240.63.48]) by smtp.gmail.com with ESMTPSA id u23sm2747922edr.97.2021.10.21.04.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Oct 2021 04:41:50 -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: Thu, 21 Oct 2021 13:41:32 +0200 Message-Id: <20211021114132.8196-4-jolsa@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211021114132.8196-1-jolsa@kernel.org> References: <20211021114132.8196-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 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();