From nobody Sun Feb 8 21:27:52 2026 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5A7855579F for ; Mon, 11 Mar 2024 20:40:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710189652; cv=none; b=uYZ9qrTE44WOFQ4fMvc7QQRJ4F/rTz1/i4De8ctRJN4PWhPILX2u7QwZ4yqm5i0oinSi6ToFHNte8p7huChDjnuz/f+hotH1YBAS8IsdyTQCuNAW+thSgx80Rqfbt+kkxJahtPVqxUJ+0Hy+GZkz29/sdU3zmwVYMBpUk5x9X3U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710189652; c=relaxed/simple; bh=hVTH5bLCNmcxmn1AYn7nqYIKnxCb2Ab5PWYay7BarHM=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=MOJAs5Xt8Z5MeTh99aVEeJtosLak5HR25Gs7HXl1aIF+pQD8S5CgpXlPCOcWBr8pV2nqJqTx+0pk1ffh2Z0oDhrlNCg5+bq49bXb+WoKZRoUYUwrIGvurDJUgmEVA+jmUBShSbsIwKu1lWFSuubg1gmC0iTidQMekidNaP3qmUE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WBh6vKUT; arc=none smtp.client-ip=209.85.167.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WBh6vKUT" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-513a6416058so2063661e87.1 for ; Mon, 11 Mar 2024 13:40:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710189648; x=1710794448; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ftY3ceO7IaWaPhjW2mEyGYWXSld3NmgLxCpyOgogGis=; b=WBh6vKUTiT2gqu1cHdz2+VgBKIQzNRZkn04q0OChrL5HllEbRsEHfXKJZuE2FQ1KfP cB3rPmA2VKknu9++V22vb/df0msxxcpHwI+kHiqhxWIC3lb5+JlVJiwtVb7GtsXeFPDr 9k8RRjc/l0766Aa+tv4pymcUw+cidLm2BaaVp/6dAWzmi4qY6ADDc5WXQKvPXXJIP5Y/ Nf2Y63tgUqJnpcTZnTjawj7UhL+UvsxZf0bC5pNboY99g5aLSVPAkAwSaE0BWGKWewjh 5wjyn6X2s1YKOX+PFkf7IQlu6snCun2VW3ehcZK3afWSySdHXoK4ScXWJFJD/i4cRVbB opLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710189648; x=1710794448; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ftY3ceO7IaWaPhjW2mEyGYWXSld3NmgLxCpyOgogGis=; b=VOjYqiSCNXWM6wAaPxbjAb+ACiHSuPfH/KvKA8fV97oxfGWx1NiyQlD0hIepdkaNIS /biAQwZd6OJ/Sbi5fNjjNiA1ZUStithePaYqGopyGVUaXxlCXWy87GONryuNhzz1MY8z yIxn69Dw/Od7zSwHPSuvimJlIyjZOOgTQsyVMLDix5EMTpdgrI527RwJmwPNMWTm4klC jxgbVPsyLvvlXnHKa9HXW00bVIpnsvE5q5MY3Ru01zb+ILR407TnenkUg1E5KWRCt0jN N6Dg68DbLzHpEExGx3RKMQ72EW57NViBukVIFiJtJPeID4Nk2nu/14hsDSDoSFncoqPh wM4Q== X-Forwarded-Encrypted: i=1; AJvYcCWRrzG4z74Zh8g3fJMDgYrsg//5HKK6yRLRKqzqwJaRYh4AXUuTzl/h5LnwGepGxJE6CN97wqgbiDVBs6K52hSsbybEPhG2aV6IH2at X-Gm-Message-State: AOJu0YxeQ6JWa0RbY5PLZDhJwNa9nBzqfPSbjbc4BB5NmfuxQOBJPlSC /ykG9rALp1BHWNo8304j5SW4joS/mofWswX8hiQUfIDm0lqoLuvF X-Google-Smtp-Source: AGHT+IEuo38Nj/u+0ocEJLpw0I9lkC/BxLBa+odAtoJ4d87TGgThDX6RvVzq64ymJi8TTt5sFXXRig== X-Received: by 2002:a05:6512:49a:b0:513:aa05:9ca6 with SMTP id v26-20020a056512049a00b00513aa059ca6mr2545016lfq.49.1710189648428; Mon, 11 Mar 2024 13:40:48 -0700 (PDT) Received: from rex.hwlab.vusec.net (lab-4.lab.cs.vu.nl. [192.33.36.4]) by smtp.gmail.com with ESMTPSA id t14-20020a05600c198e00b0041312c4865asm14929355wmq.2.2024.03.11.13.40.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 13:40:46 -0700 (PDT) From: Brian Johannesmeyer To: Josh Poimboeuf , linux-kernel@vger.kernel.org, Brian Johannesmeyer Subject: [PATCH 4/7] scripts/faddr2line: Pass --addresses argument to addr2line Date: Mon, 11 Mar 2024 21:40:16 +0100 Message-Id: <20240311204019.1183634-5-bjohannesmeyer@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240311204019.1183634-1-bjohannesmeyer@gmail.com> References: <20240311204019.1183634-1-bjohannesmeyer@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" In preparation for identifying an addr2line sentinel. See previous work [0], which applies a similar change to perf. [0] commit 8dc26b6f718a ("perf srcline: Make sentinel reading for binutils addr2line more robust") Signed-off-by: Brian Johannesmeyer --- scripts/faddr2line | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/faddr2line b/scripts/faddr2line index bb3b5f03f4ea..820680c59a39 100755 --- a/scripts/faddr2line +++ b/scripts/faddr2line @@ -260,9 +260,12 @@ __faddr2line() { =20 # Pass section address to addr2line and strip absolute paths # from the output: - local args=3D"--functions --pretty-print --inlines --exe=3D$objfile" + local args=3D"--functions --pretty-print --inlines --addresses --exe=3D$= objfile" [[ $IS_VMLINUX =3D 0 ]] && args=3D"$args --section=3D$sec_name" - local output=3D$(${ADDR2LINE} $args $addr | sed "s; $dir_prefix\(\./\)*;= ;") + local output_with_addr=3D$(${ADDR2LINE} $args $addr | sed "s; $dir_prefi= x\(\./\)*; ;") + [[ -z $output_with_addr ]] && continue + + local output=3D$(echo "${output_with_addr}" | sed 's/^0x[0-9a-fA-F]*: //= ') [[ -z $output ]] && continue =20 # Default output (non --list): --=20 2.34.1