Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1565622pxb; Thu, 14 Apr 2022 08:48:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNGf6Vlszrcssd+gl3yrKZD9JjEjP8MduOCc9DbVMYKePhk+6QneK/4JjQDecQPxRcio/i X-Received: by 2002:a17:902:9b92:b0:158:9b65:a78 with SMTP id y18-20020a1709029b9200b001589b650a78mr10083840plp.53.1649951306085; Thu, 14 Apr 2022 08:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649951306; cv=none; d=google.com; s=arc-20160816; b=x3jqf7itniawsxuJRrj0HF3vWLuoumj/HS+55c30ki1eR/W/NZ4JSptvwJ1m1kFQi3 zZQ9qC6gNipMv496YY1jJRZDpcKJqTBJo8AVGPCtV1miRQcT6TIXiz8X3TnY2Z9zwZJO iRUUE+vHomrK0dJnkXj5NIqUDQE0Vrzy7x8xg/MXatxUv9ptcbqGoGik/aId3rtrhTlr g/Bzh8cBe7VeBJNHswNgt60MXdx/zcflshcaTw8Ineqa5jhlsAy9m8SZpBcbiB+84WWU rGtlRZnEvOSQjGgqa6IY/UfuFB/Aj/qSbUyHbFFI1cCqrDu6dPXtqsoIXib4VenrAxzs kvMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=OXUdwXaZ+c8aM0QFkw/EXQ0tAX5gUjOww4aYTQym48k=; b=xOxXQGQAdP5yXkrqlUi8XEw9mvlqoOoOAsVjW80lt7apLOY9XHskFTBewmdbcFrA+d CbT5w2lGDI7NvL4uwMrZCSjVZYiVKLEeNuWF5xnaaReP2/5LauP/ApeCK+3GitarN4fK kOU0QfTNjVTm1Yysp82T8ExQUtI8txiIiWNTNxHodlxHTsnkMNJf1jplI6ay48EIEbCz VSdinCB9Cj5LG03JG3XO59q8/Ju64nuhZi/Y5710EwVZ8sgLeCx9V4sVxxj3vPO1X66r LDApD5wvQQw1dxwy6T6V2wMRCJEE5T2OOirMxGIFox/aB3eV6QfpZp7UyYXjJovjkiI0 +Xbg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t8-20020a056a0021c800b004fa3a8e005dsi277731pfj.276.2022.04.14.08.48.05; Thu, 14 Apr 2022 08:48:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237126AbiDMRBe (ORCPT + 99 others); Wed, 13 Apr 2022 13:01:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233651AbiDMRBd (ORCPT ); Wed, 13 Apr 2022 13:01:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96F916A047; Wed, 13 Apr 2022 09:59:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5690EB825F0; Wed, 13 Apr 2022 16:59:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3B12C385A3; Wed, 13 Apr 2022 16:59:07 +0000 (UTC) Date: Wed, 13 Apr 2022 12:59:06 -0400 From: Steven Rostedt To: Andrii Nakryiko 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 Subject: Re: [RFC bpf-next 4/4] selftests/bpf: Add attach bench test Message-ID: <20220413125906.1689c3e2@rorschach.local.home> In-Reply-To: References: <20220407125224.310255-1-jolsa@kernel.org> <20220407125224.310255-5-jolsa@kernel.org> <20220412094923.0abe90955e5db486b7bca279@kernel.org> <20220413124419.002abd87@rorschach.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,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, 13 Apr 2022 09:45:52 -0700 Andrii Nakryiko wrote: > > 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: OK. Note, it only needs to be on the function, the prototype doesn't do anything. But that shouldn't be the issue. > > void notrace __bpf_tramp_exit(struct bpf_tramp_image *tr) > { > percpu_ref_put(&tr->pcref); > } > What compiler are you using? as this seems to be a compiler bug. Because it's not ftrace that picks what functions to trace, but the compiler itself. -- Steve