Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1503744pxb; Thu, 14 Apr 2022 07:34:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGoTx1XcDlkncZ0XZ9jVT9/utrXrreC2UHCZ+8Xtmz5R40kxMxlZTfu55pmharKesoFEyd X-Received: by 2002:a17:906:eb05:b0:6e8:d608:bdf3 with SMTP id mb5-20020a170906eb0500b006e8d608bdf3mr2577004ejb.49.1649946866853; Thu, 14 Apr 2022 07:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649946866; cv=none; d=google.com; s=arc-20160816; b=M7ZEyErri1N+DXAKp9jnXxaATrKCQzcFeS73RWH85AjzrZOXFkGB0Dt83dXAXJgGDP I6uzfORfHUrf1ToV2RtZKL/0aQKy6yU3maRKiCrrTEbiYQ7eIVWW7XjzAlQ6zmO0dTlW YmLsCEDXDA/5hQCORaYCzr4tOAAQAMjVzp6DS+sa6PBWMKNGiYEvfCNXxHj0jFpDIq1o RZHPm9xh5cXYvd5G9dZdIe523EysPGtMIKNhnWjDO255zetr8y9qrbi8IcLt2lGdzyM6 Cy5UP9qu5XD/WAMC9FwC2LI4npBvwjo/7PEL36SAnP9+r2Zlm+W2TAp1BPF8ltLkZlTH xIMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8GFQwLqRtDMmyy6jTScqi2CyOUvHmy6pFf5FG85R2pM=; b=JkjMAsrJN15NwdlJ0AJUzdWdTpuLaTpXCeQb2EcqGgzbyFxSjSkl/n301xq6m3dDYJ kE/9v7SPyc93B18Y2oCbymflCfQDYPhXN1+/Aclh0lnMhgX9KFilC/0wAF0gVoHEmpR4 eolaisjb00B2eMSL3VeXwU11g128hPxi4OO7JUEE1QPJ9aMjKSLP+wHEacp0xuOF+7hk uow9r/LKzfbnAhiuYQKUCjTzuK/GGi9skdNSeeWbVuJLKt/eZ025cidR2ROvWzHieDbE pQ8phWl8/mLTNuie92b6s9Kvx7TRS7L7D332oOYWw5THk1T0lDK87vdNstUq6XPnsTFG +2Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nqB6euXB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb1-20020a170907784100b006e8cb4353ebsi2051427ejc.301.2022.04.14.07.33.55; Thu, 14 Apr 2022 07:34:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nqB6euXB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235924AbiDMQsc (ORCPT + 99 others); Wed, 13 Apr 2022 12:48:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237072AbiDMQs1 (ORCPT ); Wed, 13 Apr 2022 12:48:27 -0400 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 657386A017; Wed, 13 Apr 2022 09:46:04 -0700 (PDT) Received: by mail-io1-xd36.google.com with SMTP id p21so2551462ioj.4; Wed, 13 Apr 2022 09:46:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8GFQwLqRtDMmyy6jTScqi2CyOUvHmy6pFf5FG85R2pM=; b=nqB6euXBsgtEqh4dqdbB0D40E86eJ6RrG0Vx+32kUQ/yudRjhgjWlpIhRW45WK/d9/ zC9y+ogxHBP+MQHJ//eSZjTPqY3cBZg5oC6vgx5C/3UTqmP0F9tQCFgV6tq511tOn+a3 7c4H2xlAiR4On8TMRYFxU7FypCBzFeSagUjvJK15Y0GwHusPcUUMgUm6aNrQG2cVLseR tx41/Fv+2cRJeY/4UYQ/vPFuk6gB+fxnfOscsvbUNHaSMwnK5XFlDbdn53BbUBwBJao3 unvPxgu/adD9HLwT0Cdtk0m4XgW390HgNSvQXIDGObZq8QOplTdudjwGU66DIFrfJ8yn gn3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8GFQwLqRtDMmyy6jTScqi2CyOUvHmy6pFf5FG85R2pM=; b=HpQ9Uqz07LO5312HIMCklNqqP/n8FsxZNLyOjxDB5SRmxKOrYD5PlGnDJKojuWJpDG Vzb/eZpCViheAEPaDsvXRvRhzsBM92vQ4gjUu9O0/87ICp3wvTM98TL8BSVrwTDSUH3D 6dvbyq59GQvysg02XXZpRehugUD0rUhztKuIYDZf601M7m3Q5d0pyzhY5RkVe1EOxh5T SwsAxsTb+9wO4HvaxYNIVc6+sL8BD4KJhpHqoUfxhPlz9CiyPa9DueO/KoCUsj15nQ/2 pjTQO620hOdze+cXChma1AOU9D2iFpshRkx6fgEXvYiyaFCOGMfI62qaFzWvX/PyX+9L DyVQ== X-Gm-Message-State: AOAM532YVeO/RCDnbRjJfBJl8L3HJZHw2Xi3a4x/AWv58Z0QlIq2P4e5 7EwUkSPRmdKB3zSEDvdDGKPigSd2VgOzcrgEyFA= X-Received: by 2002:a05:6638:33a3:b0:326:3e11:3f3b with SMTP id h35-20020a05663833a300b003263e113f3bmr5361029jav.93.1649868363559; Wed, 13 Apr 2022 09:46:03 -0700 (PDT) MIME-Version: 1.0 References: <20220407125224.310255-1-jolsa@kernel.org> <20220407125224.310255-5-jolsa@kernel.org> <20220412094923.0abe90955e5db486b7bca279@kernel.org> <20220413124419.002abd87@rorschach.local.home> In-Reply-To: <20220413124419.002abd87@rorschach.local.home> From: Andrii Nakryiko Date: Wed, 13 Apr 2022 09:45:52 -0700 Message-ID: Subject: Re: [RFC bpf-next 4/4] selftests/bpf: Add attach bench test To: Steven Rostedt Cc: Masami Hiramatsu , Jiri Olsa , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Networking , bpf , lkml , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 13, 2022 at 9:44 AM Steven Rostedt wrote: > > On Tue, 12 Apr 2022 09:49:23 +0900 > Masami Hiramatsu wrote: > > > > I'm really curious how did you manage to attach to everything in > > > available_filter_functions because when I'm trying to do that I fail. > > > available_filter_functions has a bunch of functions that should not be > > > attachable (e.g., notrace functions). Look just at __bpf_tramp_exit: > > > > > > void notrace __bpf_tramp_exit(struct bpf_tramp_image *tr); > > Did you only use the "notrace" on the prototype? I see the semicolon at > the end of your comment. It only affects the actual function itself, > not the prototype. notrace is both on declaration and on definition, see kernel/bpf/trampoline.c: void notrace __bpf_tramp_exit(struct bpf_tramp_image *tr) { percpu_ref_put(&tr->pcref); } > > -- Steve