Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3396187ioo; Mon, 30 May 2022 00:38:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFX5+C2tOEQOfxM9eGPuVA83BkBfpnc1/aQtOvEn1asCkUNb59Wm9l+vqQgC8sKZ1hXdbP X-Received: by 2002:a17:907:7f20:b0:6fe:f0c8:8e6f with SMTP id qf32-20020a1709077f2000b006fef0c88e6fmr30982033ejc.453.1653896324575; Mon, 30 May 2022 00:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653896324; cv=none; d=google.com; s=arc-20160816; b=qOWCXOwWtS8m8kAk0wgNGAbQrRFWB8BJ9udu4fXNd+WU4bxiq644gIdn3GYwDFYqYG 0CqtFQWlf7zBEa+iVx2RKtmhN+a9KouIp3UpzqsWz90obnU36jxolr3PNcOE37wJfjA7 NtjF0dFP47B0Zw30O1c2Fou1N4Xi/RwX4c2/HCMl8aWen4VpwtsiJASpcddraHTWH1b2 bcFnQGhoBlJT33Gk9s+7Kih6tqXTnOCmFT6aP2hozRjZtuWLLbXr8Yg93KUvlZTTu1rY acAojIPVIslb5yZMUqLLS+PH1B1uymqVxvm812LEVVeF9uONfT/qRv5cR2gbBaxinwMF HkjA== 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=3pLlM4nZRwPGSNDDtlA2OaqAYKbM+n8ZLJpr5f+E5kk=; b=Wkk8j6JBdCUs1BQtUWYk3IL3S/G3kXaymuEOV9ixM+itqqhtGuZLNNO67qb191K6Qk oP7TA8wpIrTCH7RJmCfWBQ3yBjbj4R+AShVmp+S37nN5pqN1GnluVh632llDU2xIvry0 6oRXdXwzhN3COUy9Gv92zm4MpZ57QIueiow0u+ThGunmOzhrjCREDs/0lxXSDPpzOYrl qbRvGkWhzyaWVx03/elEFXWHr9wEsU95jXwr1dEx4sEMjCGp/BkBskfGTs5w2CB+s2gR fQeU41zzlzx2hUwzIeHvWSnNJkCjBOPgxrhIDoWkIAV9hB/+FuEjxPcJouZO9GHE9PIN Gd4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R50tngTF; 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 z10-20020a056402274a00b0042b014da173si13686583edd.304.2022.05.30.00.38.19; Mon, 30 May 2022 00:38:44 -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=R50tngTF; 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 S233451AbiE3HbN (ORCPT + 99 others); Mon, 30 May 2022 03:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231694AbiE3HbM (ORCPT ); Mon, 30 May 2022 03:31:12 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E798C712F4; Mon, 30 May 2022 00:31:10 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id y13so19124925eje.2; Mon, 30 May 2022 00:31:10 -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=3pLlM4nZRwPGSNDDtlA2OaqAYKbM+n8ZLJpr5f+E5kk=; b=R50tngTFMkq4TTfzThEoZTQWOAbQrBw+O92IxiSlHNTHTE/JeHjgnOow4B1d+JedFt bNk1Ouc9Oj9xSsX1ZCbtZ++/aePRd2A9/VZq/vCOR3ZHV+5IwH5gujbspu8YuCBFoj+3 6dY9CvN0GlJRlebTfM5ohAPcWyx+cQ5JadSjgH5mOTVpzF9pae4Azja3zNBEG4cByIPS N+PMR4z43uuGH42XS+eayBjxbSnXIfKerLXM0FI9l7KD9m0N0/t1FOxPOxu3+RkL6jv8 2nq65xIKoS3JVNK0Qa4T6tZOXypdZSX7L4zBKdLaiQU2rfCn4SIhsdBAmoc+gdAqRQ5W X1CA== 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=3pLlM4nZRwPGSNDDtlA2OaqAYKbM+n8ZLJpr5f+E5kk=; b=4fPS505qHLSBuMwXhLq3Jnt6Nk/L6OaafXmEiqdPIXaAud4lLN/dUgwA3feljHSZQb /JZspotovh9iETLcSj53ZIskU+w/VoVpi72Y5cAJ/X4kAn4YU0mkmkD3zPehL+ulilHb un8gtTOovQiYFTIIKSY+L+QwCOkCD0BMEJeyzxg68X/YfH2k6JxV1dI32dta3xVBN515 xKponX3esgdmrd+030VuBOzRBkxTflGSlM6DTW2OeqI5xkXPCHgrXTgz99nROA9NT/Tv 3yEbeWkVUxL0DNziK4NBPBPPT7HCLWc86X2dgPL+M1mC1vJTGTIf2p8OooraiVci8dAb KmVw== X-Gm-Message-State: AOAM530lpYTa6zZTRb7VYJwfS2xY4ebyyyf6n0IllmgR2oHdMyhZLqM+ BBEg2ksf6CM6zv+wpOqAopY= X-Received: by 2002:a17:906:5d08:b0:6ff:8ed:db63 with SMTP id g8-20020a1709065d0800b006ff08eddb63mr24269552ejt.408.1653895869424; Mon, 30 May 2022 00:31:09 -0700 (PDT) Received: from krava ([193.85.244.190]) by smtp.gmail.com with ESMTPSA id p7-20020a170907910700b006fec27575f1sm3713020ejq.123.2022.05.30.00.31.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 00:31:08 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Mon, 30 May 2022 09:31:06 +0200 To: Song Liu Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , "netdev@vger.kernel.org" , "bpf@vger.kernel.org" , lkml , Martin Lau , Yonghong Song , John Fastabend , KP Singh , Steven Rostedt , Masami Hiramatsu Subject: Re: [PATCH bpf-next 2/3] ftrace: Keep address offset in ftrace_lookup_symbols Message-ID: References: <20220527205611.655282-1-jolsa@kernel.org> <20220527205611.655282-3-jolsa@kernel.org> <6D832064-C22F-46F6-8663-A516E1D02C63@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6D832064-C22F-46F6-8663-A516E1D02C63@fb.com> 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 Mon, May 30, 2022 at 05:37:49AM +0000, Song Liu wrote: > > > > On May 27, 2022, at 1:56 PM, Jiri Olsa wrote: > > > > We want to store the resolved address on the same index as > > the symbol string, because that's the user (bpf kprobe link) > > code assumption. > > > > Also making sure we don't store duplicates that might be > > present in kallsyms. > > > > Fixes: bed0d9a50dac ("ftrace: Add ftrace_lookup_symbols function") > > Signed-off-by: Jiri Olsa > > Acked-by: Song Liu > > BTW, I guess this set should apply to bpf tree? > ah right, I checked and it still applies on bpf/master, please let me know if I need to resend without 'bpf-next' thanks, jirka