Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1244607lfc; Wed, 1 Jun 2022 12:55:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXrQjFjwNwC7Ah09mUd6GMfd1YxQcQ2I4uc/tlCyHZsmyamLagNPcu7rSgcd64Mzgmuskv X-Received: by 2002:a17:902:b083:b0:161:955e:f16e with SMTP id p3-20020a170902b08300b00161955ef16emr1049745plr.73.1654113310466; Wed, 01 Jun 2022 12:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654113310; cv=none; d=google.com; s=arc-20160816; b=pCkvg1RvvBO+uIwp143iVRPQW0nNWfO9YNKhBIt0yL+me7iwAiDAk5YZGHAJVnUN7X vRyS//wASpjAD1GnkZTmksFJcqJJeQ3EYiy5vx+GqAyJUQ2vGXt+ibChHR8+JQY+omTg gFWtAb6b52xgzaW5mDxIjt2f0Yjzj135ePMdJEgkUHvW6F8iqMVPJQQCfxoQ/4dtHQXb V+osSQo9urmFN9uVhCfyTdxuZkEWNOBo994pOcAmolOMX/A3IRn/4y/rkMGZt4srCh19 mpb2xZZcZxicd7xKWVxAbpZXH/J99P1ArBtufsb/m+gS1vYVVGYanw6thw88GRg9516K PkQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=vPa7B35rY5BbVWJ2SE9YXtTRgEwORpIhNzRnK8O7tGY=; b=VYCpGZp8rBryi+6WlrGZC3tf+JWiIj2lDaUFXaCaTbTNYx61RpbJuQnuufpiFQJDfM LEWNpyORgOPQ1BWa/IGRm1X8tD2huZziUgi7kdF8bMZkWfeqmbDaogyHDSYev49zzFUz 0Dks/9F102SOyKBFQp3oASbYklz7/ptmTsflkCNnSF/TCQqOsiAz0JjOMaeFR/++ksSB Ub5ykX9pu5/5DKTAvITTwoqnNfMdbvEB5rAqE8hyM4WiuJpOv9Ggo7R4eOSLEhxwKTUu MFn2q74kfi0ldE9twLFn7M7YdoeRUdQoB6zzeMdMacs9VTbjWve4cBV+/89IFVV7lzvc hKPg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m15-20020a62f20f000000b0051bc4d20274si114186pfh.23.2022.06.01.12.55.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:55:10 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 F2DC82109EE; Wed, 1 Jun 2022 12:16:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240968AbiE3UUY (ORCPT + 99 others); Mon, 30 May 2022 16:20:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230118AbiE3UUV (ORCPT ); Mon, 30 May 2022 16:20:21 -0400 Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 964D75FF13; Mon, 30 May 2022 13:20:20 -0700 (PDT) Received: from sslproxy02.your-server.de ([78.47.166.47]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1nvlsA-0007CU-7R; Mon, 30 May 2022 22:20:18 +0200 Received: from [85.1.206.226] (helo=linux-2.home) by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvls9-000EjS-I2; Mon, 30 May 2022 22:20:17 +0200 Subject: Re: [PATCH bpf-next 2/3] ftrace: Keep address offset in ftrace_lookup_symbols To: Jiri Olsa , Alexei Starovoitov , Andrii Nakryiko Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, lkml , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Steven Rostedt , Masami Hiramatsu References: <20220527205611.655282-1-jolsa@kernel.org> <20220527205611.655282-3-jolsa@kernel.org> From: Daniel Borkmann Message-ID: <58130008-a5e4-50e2-0706-e5edb4bfb5a8@iogearbox.net> Date: Mon, 30 May 2022 22:20:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20220527205611.655282-3-jolsa@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.6/26557/Mon May 30 10:05:44 2022) X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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. Thanks, Daniel