Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1065218rdb; Fri, 16 Feb 2024 04:32:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX04TQj4Zevv+c0dZOz+h/wtKhD93bVWvjOb+rN0/rQBC82ESm+UZGXUp5yLL5Ln/iNLNUXAS6Luv8mFoCc3PTemyopCzIomsCy4/Q03A== X-Google-Smtp-Source: AGHT+IH1LWOtaSvgfdQZcTOGzgeWwaszsOAADmgagt2IFscLkNPLhC07M1noaDjc308Wkf8O5wym X-Received: by 2002:a17:903:110c:b0:1d9:a2b1:8693 with SMTP id n12-20020a170903110c00b001d9a2b18693mr6044852plh.23.1708086727434; Fri, 16 Feb 2024 04:32:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708086727; cv=pass; d=google.com; s=arc-20160816; b=gyuwWCkrLhQOA5Pqi6AT18wV7Zj1iyE0+JjHeyFRzSRaNQlDzh357EG+foSStRVr7I +HJk9m3W7fepfevv7JXCow3Wyf0W0k9Nvc6reLtNtcHk2OKQkDazACr3UCu8dABqCzjT OVHsqZGFuZheJMXR+3oSa2tft6rkAKPK5rL1k+9LNgJRPsAsPs7BnrF+Zr6jolGJtG2+ 0uBl9AAdhAUN8xdfjgb6F4oVK82bE5uEJjHTGNKfmrMIfbKWeaL1TkG3CaztRelK4UIS QuOMmovu2FxzzqcFTihJaubgAI62+RKAXo9lOnrb26kl6qtTpMZ6URC9wJETr6kAqfV/ R1Kg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=0U/8nIGG34u2L2vQUrpTgUrGZed1ST7/cCFA2MX7hdo=; fh=spQDgPjfLxckneX4sONShZS29JbJjPbsT7BQsutQj2o=; b=mAlBetgyQL/Pb8f//6xabBe3fNKRmBK9bdOnDE48NAPtwUAvKa2XqPiTITtFhrgLni fyKMd+GQ/AT5ATuGJddEpjIXwt7cB9ORxCOkaKjKSPGn+QaARsNGoruQWWKoe6BnWqy4 z7sPpXjOBn3FGv2baHK+d3i0lhU+OXy5aOhUiaWHHnpt/wsJkSR6+vN9BZgd3sWEu/OR JRaf0rwj6/z/QJynI/wQbJJ/1nHYQxuff6DVgWhMS56JieATZF4DEtyzvOwuAdSts6sH MzmC3bVeTVuOTwuQ8adyH+lMs4n9H10uX/ou39t3QpiI5/+GLrParwb5q4khObqrVzKQ EvEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=iVnoNw9Y; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-68568-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68568-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id im9-20020a170902bb0900b001d78541b723si2945607plb.496.2024.02.16.04.32.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 04:32:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68568-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=iVnoNw9Y; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-68568-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68568-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 214B2B209DD for ; Fri, 16 Feb 2024 12:29:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A58A78B68; Fri, 16 Feb 2024 12:29:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="iVnoNw9Y" Received: from out-176.mta0.migadu.com (out-176.mta0.migadu.com [91.218.175.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D570077F2C for ; Fri, 16 Feb 2024 12:29:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708086562; cv=none; b=bb0oExPUqc9Cl3V5+JuoLy0e4F273bt513Cb9/Topx6kty6tnsEjrcH/LuqRcN8fVQMazGffVv5fh5/7t9ltP1R08QczkJSfjNM78DkrE6t3R8VoV2v1h0ue8x2QIqXzFis1hlvFuemd8HxdzevvVwJM+HviiKoFIqN/W6s1Crs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708086562; c=relaxed/simple; bh=1DYP3Ta/AJJgh2KRQMfUYZ0/YFlLC7K+nMQvEkXKk8s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Jbw6VUSaeHrs6dz8O1Hodb0MxF/UJ2rQxxz1aDCYAjIpWnNTDEu8cgTaL0r4hNz+fRjU57Fvau8mplS4ANn/Chdc+iJXNb6F/eagO+792iPwJfK+EKx4jo3yY1HRHiWsoWtgZYWo5mRpVqMs0ea7U7SiUSHwsKM6OAk+ZfNUCg4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=iVnoNw9Y; arc=none smtp.client-ip=91.218.175.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Fri, 16 Feb 2024 20:29:02 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1708086556; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0U/8nIGG34u2L2vQUrpTgUrGZed1ST7/cCFA2MX7hdo=; b=iVnoNw9YfjLtkG5WYC8Vss38AFwtIl189YvpdOcBILeWElZMw0zEmNmvFvmVO6sXlkqwGd 3YWsUCR6VuARrrqWFFfXupO2nqdltIgZYZ5nxRqOh2NAEQaSDjkpCAcVWIbuZJEacjpt0n leJaOhfo8I2DkbGcWh6ofr4LQDVAZ/I= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Leo Yan To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Ian Rogers , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Will Deacon , Mark Rutland , John Garry , Mike Leach Subject: Re: [PATCH] perf tools: Fixup module symbol end address properly Message-ID: <20240216122902.GC99827@debian-dev> References: <20240212233322.1855161-1-namhyung@kernel.org> <20240213033954.GB81405@debian-dev> <20240214101420.GF81405@debian-dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT On Thu, Feb 15, 2024 at 09:19:51PM -0800, Namhyung Kim wrote: [...] > > On the other hand, I am a bit concern > > for a big function (e.g. its code size > 4KiB), we might fail to find > > symbols in this case with the change above. > > Yes, it's another problem. But it cannot know the exact size > so it just assumes it fits in a page. Agreed. > > > > If so, we should use a specific checking for eBPF program, e.g.: > > > > > > > > else if (prev_mod && strcmp(prev_mod, curr_mod) && > > > > (!strcmp(prev->name, "bpf") || > > > > !strcmp(curr->name, "bpf"))) > > > > > > I suspect it can happen on any module boundary so better > > > to handle it in a more general way. > > > > I don't want to introduce over complexity at here. We can apply > > current patch as it is. > > Good, can I get your Reviewed-by then? :) Yes. Reviewed-by: Leo Yan > > A side topic, when I saw the code is hard coded for 4096 as the page > > size, this is not always true on Arm64 (the page size can be 4KiB, > > 16KiB or 64KiB). We need to consider to extend the environment for > > recording the system's page size. > > Sounds good. But until then, 4K would be the reasonable choice. This is fine for me. Thanks, Leo