Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1756496iog; Tue, 14 Jun 2022 12:34:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uirL8ky8CPrjy4v4uoZ3rwJF6xE3c7UKkJl+J3EbS+VKRnkfoN7KTAuUg+6A1DQwiHXRhz X-Received: by 2002:a17:906:3bd9:b0:6ff:4b5:4a8f with SMTP id v25-20020a1709063bd900b006ff04b54a8fmr5883170ejf.139.1655235299553; Tue, 14 Jun 2022 12:34:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655235299; cv=none; d=google.com; s=arc-20160816; b=eNMN3hqBOF6IaIH0z8/dXALHWAo8x1niDeX5p1igMHXArs2QTAtFp11J1QU199yqpu Q4VHiP8aN7GmQejh7glswmLtEOK0FfXL/617VCTjoCHscPVSNJpP8WAGCSd11z/onnH1 DfidsFcwvOUeiTIqX39jMNFQILY/LOEpPjOGb9C+wrlqJ41bC3PsBdVgg2cHI3OOog/J suNCLOqzA08wo1ols/W06K7Oqznner/UQPElwnq/N0EhtSw2shsxxbsCeBA3zOiMp6ZA p109Vn9NJpKwLVn5HwcRp3auRL2KquUG8K4Z4KtqdN+8LFbTg3YfYT1+A0YcBuM81Our DvlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from:dkim-signature; bh=LQS7VowSx/S+w+iLmTbGWcWoA0CZ0lVjX4LifZSTEZE=; b=zWQO3GuERGmxKPTYjl4qmSAYn4EV+RruirG7b6afThh4h1GAdUKOxUtj25LsqBz0rg t5nhIE7cgKJqLdzajNSL80RF3BISs5cjhsIE126/q+ojAMXW4EJXTecsFqtcWgEZHm4k I5cT0tGCfu2VAwOpbrNAfnMfhOw3ENtr+QDvWgWRP5e8Z90OFh4T3KXmWS52ajR9jrWe qg3v0JQkxpZiq1OCtEQSKhUVUpOdnP8WwqtKO6uKNpHPnvRCjnwo+QhW9Wm1v79X57rU bhNHeI/CLYekdH4EIEBXJPoJk3O8H0yTvbMSVySY6w+vo94NL+oS0EwDcfYIeJJWj70v kFrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mkwtIuPk; 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 o8-20020a056402038800b0042dd024cd6csi11901905edv.485.2022.06.14.12.34.33; Tue, 14 Jun 2022 12:34:59 -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=mkwtIuPk; 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 S237404AbiFNTWD (ORCPT + 99 others); Tue, 14 Jun 2022 15:22:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229988AbiFNTWB (ORCPT ); Tue, 14 Jun 2022 15:22:01 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E6DE29C83; Tue, 14 Jun 2022 12:21:58 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id d14so12990836eda.12; Tue, 14 Jun 2022 12:21:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=LQS7VowSx/S+w+iLmTbGWcWoA0CZ0lVjX4LifZSTEZE=; b=mkwtIuPkjTinjeBHAd5Uk6q8Vvx8bh0z0iEkAXqqNBw0Y2+CaMFvPqlvGLfXZITELb YBuK5VTzTFnmw0pmtEtLqiAnB3BAkGBcOwLfU4IBLEqjdhFAkX4fn1jcqAYCbmpbbe9y qIQB3roKngMuYrqLQt6tHVobbxTPTy9wEl872Z//dlchLBqIvw3Af4yqRLFkleyz4OAS E4Br6e17PtEpu6UWOBiNRWsMVGLCX50rE/iUnrvfXR5ZDZC3g4f6ef5AIWvMgPJwesgh GvBCNQYwantRaRYldKt9Ga3WER1QqMjDTovwiqcGbcXGxrw9I5xBrMSRqI/v8o/HAw0P YBoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=LQS7VowSx/S+w+iLmTbGWcWoA0CZ0lVjX4LifZSTEZE=; b=eZUhVstDdf+00VBiB5nwTa45MyIDg7F+b7qRVF7dixsVu9DOgFzOaTQdeEYJJYzPD1 LYxAI7BDl7xyibURp6L9j5HasELCk/nCNIJ2s3ImWiDLLmFwCVCkwTUoxFhE59CYwAb2 /Liw79FfKhk/YQG5T3a3FgFFsuH3aGeGJZ0l4FU8mD3WMgh0tGWnhh14uFthPQDhmFfR UhFRSlV1VdOi1UXkUkJcPaoHzS29FMDHqbxF8iwAtN96syNlB1R3o+kZ/NKNomfBttkm peeEtkbQoYD9S6qbl2vk+Wwf2aufecgGsPUbXuJrUNwnzpUBBKbrxTMDZF8m/6eUdsOC 7OZg== X-Gm-Message-State: AOAM530Pq8eJpZ4v0hMhTZvtfgBSQKL3teW//5JJQQWd+HKJJND9MYSK j12r69j0DDa+Pf0T1SOmFSs= X-Received: by 2002:a05:6402:2548:b0:42d:dd95:5bfe with SMTP id l8-20020a056402254800b0042ddd955bfemr7928262edb.285.1655234516470; Tue, 14 Jun 2022 12:21:56 -0700 (PDT) Received: from krava ([83.240.63.226]) by smtp.gmail.com with ESMTPSA id s11-20020aa7d78b000000b0042bca34bd15sm7567589edq.95.2022.06.14.12.21.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jun 2022 12:21:55 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Tue, 14 Jun 2022 21:21:53 +0200 To: Andrii Nakryiko Cc: Steven Rostedt , Jiri Olsa , Alexei Starovoitov , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Network Development , bpf , lkml , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Masami Hiramatsu Subject: Re: [PATCHv2 bpf 3/3] bpf: Force cookies array to follow symbols sorting Message-ID: References: <20220606184731.437300-4-jolsa@kernel.org> <20220608084023.4be8ffe2@gandalf.local.home> <20220608120830.1ff5c5eb@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Jun 09, 2022 at 11:32:59AM -0700, Andrii Nakryiko wrote: > On Wed, Jun 8, 2022 at 9:08 AM Steven Rostedt wrote: > > > > On Wed, 8 Jun 2022 08:59:50 -0700 > > Andrii Nakryiko wrote: > > > > > Would it be possible to preprocess ftrace_pages to remove such invalid > > > records (so that by the time we have to report > > > available_filter_functions there are no invalid records)? Or that data > > > is read-only when kernel is running? > > > > It's possible, but will be time consuming (slow down boot up) and racy. In > > other words, I didn't feel it was worth it. > > > > We can add it. How much of an issue is it to have these place holders for > > you? Currently, I only see it causes issues with tests. Is it really an > > issue for use cases? > > I have the tool (retsnoop) that uses available_filter_functions, I'll > have to update it to ignore such entries. It's a small inconvenience, > once you know about this change, but multiply that for multiple users > that use available_filter_functions for some sort of generic tooling > doing kprobes/tracing, and it adds up. So while it's not horrible, > ideally user-visible data shouldn't have non-usable placeholders. > > How much slowdown would you expect on start up? Not clear what would > be racy about this start up preprocessing, but I believe you. > > So in summary, it's not the end of the world, but as a user I'd prefer > not to know about this quirk, of course :) ok, I'l resend with the test workaround jirka