From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EF9431A2543; Thu, 2 Jan 2025 19:46:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735847165; cv=none; b=kF9tqkJwo0NoNDppE+3Mh0vxDAZtMP4/u5E+MEY5NFnhR/ELervFdXZWg4T9YNdcsN4Ts5jVRrn77/NeUqwfOtD4W5cRe30L7q2frHm6XVUXGk2tNvH8VSwcPun2wyofdcQMXU1iyPZWUTi7RiP/Z5xeCCp0Ux8BFrDVPbokhno= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735847165; c=relaxed/simple; bh=XsN7IfShpCImBEr9aQ3Zbu3bubtDqzCllKm2ic1Qn8E=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=N6akTP7P6V02buJmGeuWxr/Gni43q2Bs7RwISaBEIrNrBQHnSnDu+jFnnh6E1Pm79nyYNb6OY0YOJXQPp2utT5y31LYlYvph6tRkl4KgDtfiL1mJygQksKziBr8pP2nPwMvEFowgt2JthFdHfPu6TyjMh6c01pTJHUYEuyRuX+w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F956C4CED0; Thu, 2 Jan 2025 19:46:02 +0000 (UTC) Date: Thu, 2 Jan 2025 14:47:18 -0500 From: Steven Rostedt To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, bpf , Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , Peter Zijlstra , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , Zheng Yejian , Martin Kelly , Christophe Leroy , Josh Poimboeuf Subject: Re: [PATCH 00/14] scripts/sorttable: ftrace: Remove place holders for weak functions in available_filter_functions Message-ID: <20250102144718.51689c71@gandalf.local.home> In-Reply-To: <20250102144553.5b32b0f3@gandalf.local.home> References: <20250102185845.928488650@goodmis.org> <20250102144553.5b32b0f3@gandalf.local.home> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 2 Jan 2025 14:45:53 -0500 Steven Rostedt wrote: > > Why even do that? Why not just make the mcount_loc table be proper in > > the first place. > > I was a bit nervous about changing the stop_mcount_loc value. I thought of > doing that first, but then I noticed that the value is found by looking at > the System.map file and not from the object itself. Changing it in the > object will require some more elf parsing. Just zeroing out didn't require > that. I could still zero it out, but then change the start_mcount_loc to the first valid function after the sort. As all the zeros will be at the start. -- Steve