Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3146533pxb; Mon, 18 Apr 2022 17:14:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxbomLcaeAAygZLrt1yjLIF6u0oSC6e6HUT4SuboKqdOLDAyj6p1eox6ksb2LpG4Hr2zak X-Received: by 2002:a17:902:7789:b0:156:8b5c:606f with SMTP id o9-20020a170902778900b001568b5c606fmr12831100pll.100.1650327251608; Mon, 18 Apr 2022 17:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650327251; cv=none; d=google.com; s=arc-20160816; b=gIhuWFbal/PzDkviNOWTPW2hx8gr0QP+VmTaAkTfP2r9LrAQuJIRJYetuKtdNlF03o iWouwEttG0xjMB+UZA2d0Vn/fyd8Irm2sfT2ygHLhdBbA9OzcpzY/cWi0ZV8cpEfOIz9 TlurPscIhxVKtxw6YCfk5eZySXqqYQ55bgVuduY3i0u40g18mjR56KPlHmcAVVTd7qbZ 5ElLMyoKccgUE6ZaJ2/NV0tUXNHbvWzqXITzjDwboZ8T0ODMJ6jGnu8OgSnwV8SVR+Jp sy22Q5K6dM6L6sbrTBq19SXWkxAOjV8Gc9vSKRv2GXDdvPl1KOGIF8QUZRgnKc5Kv7pV Cjqw== 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=kGUmIGcjQs3TWUOny/489UCDKuvAfmmAUAQ1dLTGBCU=; b=XU5alHGsYSCWFfs9HfypLDaPHrgLCThxamM9wrLkx65Loy92rnnjcXU2MzKlX//Qfe /SEXEa2XVulirBJr3s+n5J14UloP7VlGXh3EUH8MGbsNpMlsS/2IuFIU9jrACKyI3ZIT G93qsKQmrvPSPeR+euhY5Aua758Z1kBWk4NS4xZaVQwic6CcP7Flq2wVjWzeeiIlrW59 t2FVzkc9C7dADXrc+CPUG57ba9yMsUrCfpLvAWGAAy78YXN4q338iG6Wq3T8BhT+yogm IWPesaPt/Ag+of99q18I3g0iuvif6ZmHYoZj3wBTpDe3/FcukQr65+Ky8mTeyYhWMisD MnYg== 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 d184-20020a6368c1000000b003816043efd1si10476319pgc.454.2022.04.18.17.13.43; Mon, 18 Apr 2022 17:14:11 -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 S1347136AbiDRRgT (ORCPT + 99 others); Mon, 18 Apr 2022 13:36:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241994AbiDRRgP (ORCPT ); Mon, 18 Apr 2022 13:36:15 -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 2027B2E9FD; Mon, 18 Apr 2022 10:33:36 -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 C95DEB81057; Mon, 18 Apr 2022 17:33:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A083C385A7; Mon, 18 Apr 2022 17:33:31 +0000 (UTC) Date: Mon, 18 Apr 2022 13:33:30 -0400 From: Steven Rostedt To: Masami Hiramatsu Cc: Andrii Nakryiko , 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: <20220418133330.6241014c@gandalf.local.home> In-Reply-To: <20220416232103.c0b241c2ec7f2b3b985a2f99@kernel.org> References: <20220407125224.310255-1-jolsa@kernel.org> <20220407125224.310255-5-jolsa@kernel.org> <20220412094923.0abe90955e5db486b7bca279@kernel.org> <20220416232103.c0b241c2ec7f2b3b985a2f99@kernel.org> 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 Sat, 16 Apr 2022 23:21:03 +0900 Masami Hiramatsu wrote: > But it seems that __bpf_tramp_exit() doesn't call __fentry__. (I objdump'ed) > > ffffffff81208270 <__bpf_tramp_exit>: > ffffffff81208270: 55 push %rbp > ffffffff81208271: 48 89 e5 mov %rsp,%rbp > ffffffff81208274: 53 push %rbx > ffffffff81208275: 48 89 fb mov %rdi,%rbx > ffffffff81208278: e8 83 70 ef ff callq ffffffff810ff300 <__rcu_read_lock> > ffffffff8120827d: 31 d2 xor %edx,%edx > > > > > > So it's quite bizarre and inconsistent. > > Indeed. I guess there is a bug in scripts/recordmcount.pl. Actually, x86 doesn't use that script. It either uses the C version, or with latest gcc, it is created by the compiler itself. I'll look deeper into it. -- Steve