Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp130446iof; Sun, 5 Jun 2022 23:16:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2ZFgRpl4ugcW3ZOfY3SrMUp91H0ofLnvoDUUaMLhJVZTdpwVkRQoZB/fOB9mJqFxAAUqo X-Received: by 2002:a05:6a00:1690:b0:517:cc9e:3e2d with SMTP id k16-20020a056a00169000b00517cc9e3e2dmr22988027pfc.0.1654496172685; Sun, 05 Jun 2022 23:16:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654496172; cv=none; d=google.com; s=arc-20160816; b=Ac30K+5RkjxFqoC0yF+Nh2a/mm61NPpWOtkCcRlzz309yIaRUHDAl/ht5JXMSuBF+j P5ez5BgOJV+1E8cHD7OnT9YRKxWPyEEK/FsQl38xNAJVYbKenPmwr1tpFxFrR6KeVg97 Bg6VFuzLZH06md++WQhPebZfLONAn/o6vYVllRDwLac7Q8Vwrhdm/s6eI8iidZEK30+b V/E00ORMgbnEBMLl1EcHoYrAFtS0kCP+LO6++qspPCeaj/zhGsXf+CxAxFc5gb3e4KRo OCbFiPzgjAtOE9iGqU54WlISw6AAU0vNQmtWxpZZg/t8u+RyMELUGkJUVpkZkH4lOiny IfmA== 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=OlUCmdG5Ln1t9h4aHx7B72bIysz9wHIMo3tEPoA0ilk=; b=eLxPYs7dfylNpHkqE4Z7Dp9tbUge7I1pSGCMC+Y2t9HmlaFKxwJBIBfQaSfTSXnExZ JjVAJC2FD+v5dICsIvE+SgmY91rA8nlvJD5TrxB9lLQ6lfI+DYhCyhsEA5l4vFvoFSsw 5/14zTYSVBVFOc2YBi15Wb9LpRwc1MGxZnrE5Z33UjpAC2o3ZMeWb+fZjduG+5lA6v7B 6JIiJUxYFIhp67g8HSYxwV5FhvbGUcUy9mRICrEK+26GJBJ5ppCjKofpKdqKCHGgkPNb awQFcxbqTWaMvFQrRoYezjpkZcmzmIXrjvnV+xckOFM6UFxOsodBCfmjvpbJDjKomWse w9hw== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w1-20020a63b741000000b003f667dd5faasi13441852pgt.82.2022.06.05.23.16.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 23:16:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CA62BDD0C3; Sun, 5 Jun 2022 21:54:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351308AbiFEQzt (ORCPT + 99 others); Sun, 5 Jun 2022 12:55:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232839AbiFEQzr (ORCPT ); Sun, 5 Jun 2022 12:55:47 -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 B50EE2FE7D; Sun, 5 Jun 2022 09:55:45 -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 2CC52B80DB2; Sun, 5 Jun 2022 16:55:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF6B6C385A5; Sun, 5 Jun 2022 16:55:41 +0000 (UTC) Date: Sun, 5 Jun 2022 12:55:40 -0400 From: Steven Rostedt To: Daniel Borkmann Cc: Jiri Olsa , Alexei Starovoitov , Andrii Nakryiko , netdev@vger.kernel.org, bpf@vger.kernel.org, lkml , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Masami Hiramatsu Subject: Re: [PATCH bpf-next 2/3] ftrace: Keep address offset in ftrace_lookup_symbols Message-ID: <20220605125540.1519a522@rorschach.local.home> In-Reply-To: <58130008-a5e4-50e2-0706-e5edb4bfb5a8@iogearbox.net> References: <20220527205611.655282-1-jolsa@kernel.org> <20220527205611.655282-3-jolsa@kernel.org> <58130008-a5e4-50e2-0706-e5edb4bfb5a8@iogearbox.net> 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=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, 30 May 2022 22:20:12 +0200 Daniel Borkmann wrote: > On 5/27/22 10: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 > > --- > > kernel/trace/ftrace.c | 13 +++++++++++-- > > 1 file changed, 11 insertions(+), 2 deletions(-) > > Steven / Masami, would be great to get an Ack from one of you before applying. I just don't care for the unnecessary "0x" in the memset, but other than that: Acked-by: Steven Rostedt (Google) -- Steve