Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp83693iof; Sun, 5 Jun 2022 21:52:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6QiCl7KQHBPZsDSJPnZXLjzFOzQxTnZD1A7D9/M294C4Rls5OEO3c/3owGTR99Y8FptFw X-Received: by 2002:a63:884a:0:b0:3fc:bcef:5685 with SMTP id l71-20020a63884a000000b003fcbcef5685mr19667843pgd.349.1654491122482; Sun, 05 Jun 2022 21:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654491122; cv=none; d=google.com; s=arc-20160816; b=TuzFHZwL7S20JRhREzf+tnUQTmEJWJ0EgRs/nHjKMfVVhiM8bmTpnUWIXhfUXsZY3t YfKtSMf2/eV+YDdIP40AXxnIFD8bvfxkSVQ5vmsEZIKzUzgevEN9jCotF2+imJI4LOkg QG0Z7rHYJl5YNFtnNu1U3W+6xzITTXBTEbwLCkQQrYnNe1sxMZ2IWvsKZqZRnbt62hDK tD3KnEv+SYHeIhGSqxXbfSZSPre28fKBy4wSrtvUnsonWk39nzj40ycnunsI605Tqcwa qxAnCGAR9iCwVhP1ZlM+rf13MOUnexcBVi8uuDwYc7Rr2vtRgV5up+62PlT/6NH1Vdp7 2zgw== 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=K/Mwh92ZpGd7M8kahfxX5dJMBFK61o2HiLJ6MXXsj/o=; b=V8VIG3FuzZOmWITQccPGvxfZIOUOCLoGwa2k5v8/q3n1LsWcllUy4l0o+2RHFD4YRF AzUMlhYgahJyqHn9F1SdGUmooCBhLDWkxghOkvkf4l1j23KXbtxBUi/yiVf/Bm9GTmgG 7GqDa83KGgu8cHuK9/7DiX1X5ZJ3+bjDUSsdBDNi+6WpAbU4+rSVS0csZ/6bYRE82M+I A7vObDVv5iIdAOANqWnjHisUQiE0SCOKg9PQPDykrUzLSPLKLKyq/TYpQ2LEpYrlqItu TSAAcBkx01zHlVgGu4xo01j6NzJuFLwzpNfItSZFY8YDZncLNEdPWRb6w3Ecp0Sd+8Iq GVCg== 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 a192-20020a6390c9000000b003fcd39083d1si14650740pge.728.2022.06.05.21.52.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 21:52:02 -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 D69D5AE479; Sun, 5 Jun 2022 21:07:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346218AbiFEQva (ORCPT + 99 others); Sun, 5 Jun 2022 12:51:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232839AbiFEQv1 (ORCPT ); Sun, 5 Jun 2022 12:51:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4A094DF7F; Sun, 5 Jun 2022 09:51:26 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 7A88361141; Sun, 5 Jun 2022 16:51:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE50DC385A5; Sun, 5 Jun 2022 16:51:24 +0000 (UTC) Date: Sun, 5 Jun 2022 12:51:22 -0400 From: Steven Rostedt To: Jiri Olsa Cc: Alexei Starovoitov , Daniel Borkmann , 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: <20220605125122.7b0e5b52@rorschach.local.home> In-Reply-To: <20220527205611.655282-3-jolsa@kernel.org> References: <20220527205611.655282-1-jolsa@kernel.org> <20220527205611.655282-3-jolsa@kernel.org> 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 Fri, 27 May 2022 22:56:10 +0200 Jiri Olsa wrote: > @@ -8017,6 +8025,7 @@ int ftrace_lookup_symbols(const char **sorted_syms, size_t cnt, unsigned long *a > struct kallsyms_data args; > int err; > > + memset(addrs, 0x0, sizeof(*addrs) * cnt); Nit, but you don't need the "0x". -- Steve > args.addrs = addrs; > args.syms = sorted_syms; > args.cnt = cnt; > --