From nobody Sun Feb 8 10:43:47 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 AFAD07E782; Mon, 8 Jul 2024 11:49:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720439369; cv=none; b=utWgaZs81qY3/ftBbESo8fbvLSMN3MUsUmKxGvkt2sp5TPMSbray4LenAqsac+6HcxVsDBk4n1vHq+pkRQ2GYncYaAmTfG8CFHE6xlM0Wqo7NYv3xJMBs4WdbmjCfsdS02yWUod+X9qHbv5DNXaBiWub+054YTDLZ/OVkwr7+5Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720439369; c=relaxed/simple; bh=JMvOIIIwUdwSATWtfKd0c3sMLRV5aQc0P8CA+pcbykU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=kD9Q1HtM15q5O/ikQfVASXu2up+3q27QsvkCGpt9Y/zPCnRL328R6UU/ui0YNqRjP+8kRixuDE8Trzq1W4qq7if/ZDp6e13Fj54n7fgZlcOvHM6Tift+iSwTdRRFxdMQyLcBb3jNfCyIGJ0TdVI6sCfxfADROr5SD6heL0VqU9g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=qrsgz0Co; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Do8IP27p; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="qrsgz0Co"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Do8IP27p" Date: Mon, 08 Jul 2024 11:49:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1720439365; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lXJqXBWEiKwrervet3ens56ojcvaQ3s6gGE6YSi4TJQ=; b=qrsgz0CoDBWxiJNbPQMfQuAtBz3dsPRWNG96DBGDEHfrB/USoGOrcQtPEltsPcKDkcMu2/ Dd4/3l7spWYZC6BHPfkbQtv7LTwu4xygHkUUfzy8ePAM0ArmbYPgBbRRMweaTDqCLK0Ep2 PmAezkxdB+ekGufA/XSNKKctNuqfP6x4zpGKfgxVS+dsw+sPc/AFeU3h03aloIsRR8Pe6d ri9F0Ln1hmbF5nrf6FjYSAGW8v13pgdMcUvCeZHjkiSfeZ8ONPl/r3ACFqhJ5CRQduCq6A /2eGoA2AFdMKTXjswB4v7jDphBAyBoMm6xRu6wDIc/n/lY6nXIycp2ujxzxcQg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1720439365; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lXJqXBWEiKwrervet3ens56ojcvaQ3s6gGE6YSi4TJQ=; b=Do8IP27p1iNNsdmFdfDo+0mKBwV8PNPZA+vjtRSsOH5ggRXALc6YG/DZ2r47SDxH2edTXP 85CC9Hw/ikU5nYAg== From: "tip-bot2 for Brian Johannesmeyer" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] scripts/faddr2line: Remove call to addr2line from find_dir_prefix() Cc: Brian Johannesmeyer , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240415145538.1938745-7-bjohannesmeyer@gmail.com> References: <20240415145538.1938745-7-bjohannesmeyer@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <172043936523.2215.14997470133117283568.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the objtool/core branch of tip: Commit-ID: 406b5c12aad8110e1b1f9355f176cac43cd1fecb Gitweb: https://git.kernel.org/tip/406b5c12aad8110e1b1f9355f176cac43= cd1fecb Author: Brian Johannesmeyer AuthorDate: Mon, 15 Apr 2024 16:55:37 +02:00 Committer: Josh Poimboeuf CommitterDate: Tue, 02 Jul 2024 23:38:37 -07:00 scripts/faddr2line: Remove call to addr2line from find_dir_prefix() Use the single long-running faddr2line process from find_dir_prefix(). Signed-off-by: Brian Johannesmeyer Link: https://lore.kernel.org/r/20240415145538.1938745-7-bjohannesmeyer@gma= il.com Signed-off-by: Josh Poimboeuf --- scripts/faddr2line | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/faddr2line b/scripts/faddr2line index 48fc8cf..1fa6bee 100755 --- a/scripts/faddr2line +++ b/scripts/faddr2line @@ -85,15 +85,17 @@ command -v ${ADDR2LINE} >/dev/null 2>&1 || die "${ADDR2= LINE} isn't installed" # init/main.c! This only works for vmlinux. Otherwise it falls back to # printing the absolute path. find_dir_prefix() { - local objfile=3D$1 - local start_kernel_addr=3D$(echo "${ELF_SYMS}" | sed 's/\[.*\]//' | ${AWK} '$8 =3D=3D "start_kernel" {printf "0x%s", $2}') [[ -z $start_kernel_addr ]] && return =20 - local file_line=3D$(${ADDR2LINE} -e $objfile $start_kernel_addr) - [[ -z $file_line ]] && return + run_addr2line ${start_kernel_addr} "" + [[ -z $ADDR2LINE_OUT ]] && return =20 + local file_line=3D${ADDR2LINE_OUT#* at } + if [[ -z $file_line ]] || [[ $file_line =3D $ADDR2LINE_OUT ]]; then + return + fi local prefix=3D${file_line%init/main.c:*} if [[ -z $prefix ]] || [[ $prefix =3D $file_line ]]; then return @@ -350,7 +352,7 @@ echo "${ELF_SECHEADERS}" | ${GREP} -q '\.debug_info' ||= die "CONFIG_DEBUG_INFO n init_addr2line $objfile =20 DIR_PREFIX=3Dsupercalifragilisticexpialidocious -find_dir_prefix $objfile +find_dir_prefix =20 FIRST=3D1 while [[ $# -gt 0 ]]; do