Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2353630rwb; Mon, 15 Aug 2022 04:04:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR7jAzKF0rWpQJC2ccrKYKOkE61eJXTjEi1kSlGse3sf87xmSAei8wohnqGtjwxB5QvNilSj X-Received: by 2002:a50:ec8d:0:b0:43d:3166:f261 with SMTP id e13-20020a50ec8d000000b0043d3166f261mr14211747edr.293.1660561478133; Mon, 15 Aug 2022 04:04:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660561478; cv=none; d=google.com; s=arc-20160816; b=NciT6QgJbQ69L/A0kKWNLLd6AUKQW2bm088gLPgnzboKF5HfumrLxK+3Z1ciIqRiHv zBqC7wMJ4Aa2KySuq+Ef3q0qSHOegJ7Ct4OoDakg3CqcyJCfJbG9HIpucLpfUiIBH1+F MrGqV7vUNdRn1XOh5mCFslwIhiEi5OURIIgJkClHH8EMeHhy7EZmvlUWcrC6o7kTVFSS kOc+AdCuda5481ehVTdzTk8NztetceVoqpODH1ee8Xz/6nVUtL8V7Az5hMePhjjX9zd2 AQZBusq82ZPwYmf/kMpC5YQeRVrn12ZnBWoM2AqMyKsrKGZ9F7SgEVKSgBNP/LM/Chs8 1VGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=cJxtEjsOPdD+28GEo/pZSc8mfFhYYMFZySPDzKfTUaw=; b=WLsV0U5DW75saSErRleg+dsgy/OY8d/rpWv4cf7yLPkhn4avOfaGUsjxpvNfOllEbb N2h0Icoa1C9DhAiE/SU69eFTHEVkBDf3auilD58PlWe5tKdpxNowkO/Oj9intUohwCg2 0lIepmOXLDbhmRWiUOMO8SjjWf4+FHM+P2gL4oj6h3rOeRIFCr+4jP/QMP3q7IjrNmGs XNeIXrFAbti8laCLDcSJJWHEpfXbeCz7cdAzR6OL9Q5mpM/Ql47Rr0AQIwR6kfo2gxLR lOZ2QBRSlWMNkqdFZHGVY9dHxpamIkEdQkd2O2DWFLoSPrx7XinrXInrZhjuV1WT5UQA jgRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="T+/Shaan"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw40-20020a1709066a2800b00733126dd33dsi8159666ejc.643.2022.08.15.04.04.12; Mon, 15 Aug 2022 04:04:38 -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=@kernel.org header.s=k20201202 header.b="T+/Shaan"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242075AbiHOLBy (ORCPT + 99 others); Mon, 15 Aug 2022 07:01:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241757AbiHOLBX (ORCPT ); Mon, 15 Aug 2022 07:01:23 -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 3C169237ED; Mon, 15 Aug 2022 04:01:22 -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 EDB03B80E1B; Mon, 15 Aug 2022 11:01:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBFF9C43141; Mon, 15 Aug 2022 11:01:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660561279; bh=cJxtEjsOPdD+28GEo/pZSc8mfFhYYMFZySPDzKfTUaw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=T+/ShaanW8wZOBJ/SIcn5ow+zcCc4WSMhAAdhraztsvUEzTfBrw/wcpqxFD51Jdn+ 7bhidBpzI8hvyK5ab1oUvOtDcjuV0vC5ApPHUObPTCdgSYcUSIIpttCefWvqXCjMUQ OLuBid0zG2UWb2ZSDz/LA/OOtW4qsN3KEpR/uL0bFBXe2Uyd0Ry85VgXRgZ53Md2Rc MoOvQdy6euZsHrj+SWkH/9HuNq9rATwlDWn//nrkyVNKcSzypdgAUZ3IplfS8iyKdl GFmLCUdyb+LUGMOdy8fJgPf3gd5DWkP8khK82E0kB1o/4DRtg3hLSHtitVSeB9N3xS rpmQM0JThwRcw== Received: by mail-ej1-f46.google.com with SMTP id kb8so12943101ejc.4; Mon, 15 Aug 2022 04:01:19 -0700 (PDT) X-Gm-Message-State: ACgBeo1T69CkhNJL62Hj1G+DkO448ecLw3sO1zZntuKkpTPQ8wsPPmUR KhBvIb0V/AlXmJKaPWKy4Inm2UZAOHrqNi7j6HA= X-Received: by 2002:a17:907:1c26:b0:730:960f:118 with SMTP id nc38-20020a1709071c2600b00730960f0118mr9975626ejc.650.1660561277990; Mon, 15 Aug 2022 04:01:17 -0700 (PDT) MIME-Version: 1.0 References: <20220722120854.3cc6ec4b@gandalf.local.home> <20220722122548.2db543ca@gandalf.local.home> <20220722174120.688768a3@gandalf.local.home> <20220813150252.5aa63650@rorschach.local.home> <77477710-c383-73b1-4f78-fe65a81c09b7@huawei.com> In-Reply-To: From: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= Date: Mon, 15 Aug 2022 13:01:06 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC] ftrace: Add support to keep some functions out of ftrace To: Jiri Olsa Cc: Chen Zhongjin , Steven Rostedt , Alexei Starovoitov , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Ingo Molnar , bpf , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , LKML , Josh Poimboeuf , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Mon, 15 Aug 2022 at 10:04, Jiri Olsa wrote: [...] > > > > > > > > Today, objtool has also got involved, and added an "--mcount" optio= n > > > > that will create the section too. > > > I overlooked that objtool is involved as well, > > > will check on that > > > > objtool --mcount option only involves mcount_loc generation (see > > annotate_call_site) and other validation check call destination directl= y > > (see is_fentry_call). > > > > Some simply removing --mcount option dose work for this. > > > > > > Another question, it seems we can export and use DEFINE_BPF_DISPATCHER = out > > of kernel, does that means we should add NO_MCOUNT_FILES for these sing= le > > uages as well? > > yes, cc-ing Bj=C3=B6rn to make sure it's valid use case for dispatcher > Hmm, could you expand a bit on how this would work?