From nobody Fri Apr 3 01:28:27 2026 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 31B5E3988EB; Thu, 2 Apr 2026 08:02:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775116938; cv=none; b=h18QDrqUWrmvTqk+HE8O0VGtAO2m6i/hXdHe4kgoosBPvyowcGhK/azzfxEHUGk+C2RtqfcDQlvnsVw9kcyr3kGZjYloGu1wfadC4dXG1nOx/0oUPH7If6DY/SVmSJ6HWrjf3tEK3UA02fpCmyGF8XOSoORJbQHPwJg/GgNEfyg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775116938; c=relaxed/simple; bh=ylA/rYzwPyD1TsGWKxgs9o6v9hhS292y0QWVDYf509U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pgazIDl946BZYDy6Kg3nLgwprlADD5xu2krGO3QH9Dl5vI44hdqehdqJTmzPUtygRdcJg/TG2V2dARd7fddElVBPYlE5t0+1BjQbG7A9jxIJsTeHpH7+uichYUjrVrTcZ2mZK1JP4INempodGoJOznKFQ0eL+j9Vw2rtM/Fuzac= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=ZDqCakje; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="ZDqCakje" Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6320nI9v449675; Thu, 2 Apr 2026 08:02:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=Yz6fXks92Kbp2aofL y9Uh8/z2+eQdJQTc/y9mwy9dTY=; b=ZDqCakjea77jbyo4In/Zw+kIAPwSEyikf cPhOhDUav3o4AlOM5/+HpgXXy6L6CoZEjUumJPeQjtblg/cRvDLXnQobfyHAmTGW M6bkvHjEtBIlmgAx/g/p3Q8OUXNDL7Au4chyN53IU5wAlHFrc9CrtP1F9JnyO2Hd wcGDtK3tR1CN1D8ApSr3SbuOoHOFhZPHEfOXy55NYQ9malwKUa/1iJWflXYOtX4X OqxRxyMTdRvUXBwZkM51ObtFWl7+UZIz8zEyzqj2rwrsDpxdxKFHYoB/5t3GFyt2 47EZzDTskFrvrn7DIah5vBtmPBJEcNTeLDq1jCvUIM6tY1HVWMAmA== Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4d66g23x3s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Apr 2026 08:02:14 +0000 (GMT) Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 6325aFNx021651; Thu, 2 Apr 2026 08:02:13 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 4d6sasscee-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Apr 2026 08:02:13 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 632829L318350490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Apr 2026 08:02:09 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 890AD2004E; Thu, 2 Apr 2026 08:02:09 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 62EA72004D; Thu, 2 Apr 2026 08:02:09 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.87.85.9]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 2 Apr 2026 08:02:09 +0000 (GMT) From: Thomas Richter To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org, namhyung@kernel.org, irogers@google.com Cc: agordeev@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com, hca@linux.ibm.com, japo@linux.ibm.com, Thomas Richter Subject: [PATCH v2 1/3] perf config: Rename symbol_conf::disable_add2line_warn Date: Thu, 2 Apr 2026 10:01:57 +0200 Message-ID: <20260402080159.2028733-2-tmricht@linux.ibm.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260402080159.2028733-1-tmricht@linux.ibm.com> References: <20260402080159.2028733-1-tmricht@linux.ibm.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 X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Authority-Analysis: v=2.4 cv=Fdo6BZ+6 c=1 sm=1 tr=0 ts=69ce2286 cx=c_pps a=bLidbwmWQ0KltjZqbj+ezA==:117 a=bLidbwmWQ0KltjZqbj+ezA==:17 a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=iQ6ETzBq9ecOQQE5vZCe:22 a=1XWaLZrsAAAA:8 a=VnNF1IyMAAAA:8 a=tHZ0q4X19njI_Qsa1HsA:9 X-Proofpoint-ORIG-GUID: 9NYxePYD9mT5wIpICnKddCCE48FW6NXt X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDAyMDA2OCBTYWx0ZWRfX02APUpmAMnfs wse0ueTbGtvfzpAwnZDFr8F77AXsgmKUk1GFjCEo4cpQNX4P0l202dVHNIlWb7p3pjaAIQyezX/ bgflzjjB0cIjLsiDvXhk5q9A3jUtWdeHn1C5e8x1GVo0F6pfPhGW4zCnuchcDu9J2KQJ0kFr+bQ 1EwNwnrNr8AtTwSeZoUgg0ngq5cd2pRsvLdR9DNU/sQ48xnFsh+4GjJ8YfV6Qwh20+C8oab43Kc 7xxYixzF66q6/RLTUNy7qAjxWkHUKGn5c55NnrwOok74+7+lURyzI4Q4EPaxR+05erNH6fXJYgP QqEN319eIYhNuoIJajDgCZs0KDuz9oG//SoU16nWwh/oBZ3TBtEQukcYJaVVnedsOCFOXToxPck IgRCBQTVkSDpqd7IE7yG00c6cU4Z4PbJUmdqXzF/W9bvZZf9umdQVMz77lluxUQrQo1F0o1H/Oi MPyYYFi9dvxkEFAUNtA== X-Proofpoint-GUID: ydHQcqr_FAiq8DNIeDmpG_hEdUHMDC2Z X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-02_01,2026-04-02_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 bulkscore=0 suspectscore=0 priorityscore=1501 adultscore=0 malwarescore=0 phishscore=0 spamscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2604020068 Content-Type: text/plain; charset="utf-8" Rename member symbol_conf::disable_add2line_warn to symbol_conf::addr2line_disable_warn to make it consistent with other addr2line_xxx constants. No functional change. Fixes: 257046a36750a ("perf srcline: Fallback between addr2line implementat= ions") Cc: Ian Rogers Signed-off-by: Thomas Richter Reviewed-by: Ian Rogers --- tools/perf/builtin-diff.c | 4 ++-- tools/perf/util/addr2line.c | 12 ++++++------ tools/perf/util/block-info.c | 2 +- tools/perf/util/libbfd.c | 2 +- tools/perf/util/symbol_conf.h | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index 69069926dd0b..35d599d5c9fa 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c @@ -1352,7 +1352,7 @@ static int cycles_printf(struct hist_entry *he, struc= t hist_entry *pair, /* * Avoid printing the warning "addr2line_init failed for ..." */ - symbol_conf.disable_add2line_warn =3D true; + symbol_conf.addr2line_disable_warn =3D true; =20 bi =3D block_he->block_info; =20 @@ -1986,7 +1986,7 @@ int cmd_diff(int argc, const char **argv) =20 if (compute =3D=3D COMPUTE_STREAM) { symbol_conf.show_branchflag_count =3D true; - symbol_conf.disable_add2line_warn =3D true; + symbol_conf.addr2line_disable_warn =3D true; callchain_param.mode =3D CHAIN_FLAT; callchain_param.key =3D CCKEY_SRCLINE; callchain_param.branch_callstack =3D 1; diff --git a/tools/perf/util/addr2line.c b/tools/perf/util/addr2line.c index 31c0391fffa3..e9f084db0802 100644 --- a/tools/perf/util/addr2line.c +++ b/tools/perf/util/addr2line.c @@ -123,7 +123,7 @@ static enum cmd_a2l_style cmd_addr2line_configure(struc= t child_process *a2l, con lines =3D 3; pr_debug3("Detected binutils addr2line style\n"); } else { - if (!symbol_conf.disable_add2line_warn) { + if (!symbol_conf.addr2line_disable_warn) { char *output =3D NULL; size_t output_len; =20 @@ -310,7 +310,7 @@ int cmd__addr2line(const char *dso_name, u64 addr, } =20 if (a2l =3D=3D NULL) { - if (!symbol_conf.disable_add2line_warn) + if (!symbol_conf.addr2line_disable_warn) pr_warning("%s %s: addr2line_subprocess_init failed\n", __func__, dso_n= ame); goto out; } @@ -330,7 +330,7 @@ int cmd__addr2line(const char *dso_name, u64 addr, len =3D snprintf(buf, sizeof(buf), "%016"PRIx64"\n,\n", addr); written =3D len > 0 ? write(a2l->in, buf, len) : -1; if (written !=3D len) { - if (!symbol_conf.disable_add2line_warn) + if (!symbol_conf.addr2line_disable_warn) pr_warning("%s %s: could not send request\n", __func__, dso_name); goto out; } @@ -339,7 +339,7 @@ int cmd__addr2line(const char *dso_name, u64 addr, switch (read_addr2line_record(&io, cmd_a2l_style, dso_name, addr, /*first= =3D*/true, &record_function, &record_filename, &record_line_nr)) { case -1: - if (!symbol_conf.disable_add2line_warn) + if (!symbol_conf.addr2line_disable_warn) pr_warning("%s %s: could not read first record\n", __func__, dso_name); goto out; case 0: @@ -355,7 +355,7 @@ int cmd__addr2line(const char *dso_name, u64 addr, /*addr=3D*/1, /*first=3D*/true, NULL, NULL, NULL)) { case -1: - if (!symbol_conf.disable_add2line_warn) + if (!symbol_conf.addr2line_disable_warn) pr_warning("%s %s: could not read sentinel record\n", __func__, dso_name); break; @@ -363,7 +363,7 @@ int cmd__addr2line(const char *dso_name, u64 addr, /* The sentinel as expected. */ break; default: - if (!symbol_conf.disable_add2line_warn) + if (!symbol_conf.addr2line_disable_warn) pr_warning("%s %s: unexpected record instead of sentinel", __func__, dso_name); break; diff --git a/tools/perf/util/block-info.c b/tools/perf/util/block-info.c index 649392bee7ed..8d3a9a661f26 100644 --- a/tools/perf/util/block-info.c +++ b/tools/perf/util/block-info.c @@ -303,7 +303,7 @@ static int block_range_entry(struct perf_hpp_fmt *fmt, = struct perf_hpp *hpp, char buf[128]; char *start_line, *end_line; =20 - symbol_conf.disable_add2line_warn =3D true; + symbol_conf.addr2line_disable_warn =3D true; =20 start_line =3D map__srcline(he->ms.map, bi->sym->start + bi->start, he->ms.sym); diff --git a/tools/perf/util/libbfd.c b/tools/perf/util/libbfd.c index 63ea3fb53e77..c1c12308cc12 100644 --- a/tools/perf/util/libbfd.c +++ b/tools/perf/util/libbfd.c @@ -233,7 +233,7 @@ int libbfd__addr2line(const char *dso_name, u64 addr, } =20 if (a2l =3D=3D NULL) { - if (!symbol_conf.disable_add2line_warn) + if (!symbol_conf.addr2line_disable_warn) pr_warning("addr2line_init failed for %s\n", dso_name); return 0; } diff --git a/tools/perf/util/symbol_conf.h b/tools/perf/util/symbol_conf.h index ac1b444a8fd8..21a1f096d4f0 100644 --- a/tools/perf/util/symbol_conf.h +++ b/tools/perf/util/symbol_conf.h @@ -51,7 +51,7 @@ struct symbol_conf { report_block, report_individual_block, inline_name, - disable_add2line_warn, + addr2line_disable_warn, no_buildid_mmap2, guest_code, lazy_load_kernel_maps, --=20 2.53.0 From nobody Fri Apr 3 01:28:27 2026 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 1E85F397687; Thu, 2 Apr 2026 08:02:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775116943; cv=none; b=SQzt2gEBefIGkCclaBqZymyHw40PiTaIgl/GLOIoIbMEMjMCZJRGwhAfTOnuslFS+VxrslaMUMvLVJ/t9Y2LU1iOcZcL2hKAJmYbZqjHNqDLIROddpBIaxhw9f8aNKWAjouyktdiE85dYg09A/fKk0/+h7Uhm+YmisWnu+Jbqd8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775116943; c=relaxed/simple; bh=44YzGD9+INr6lYgU4EyVr7swE3tPesdsDoU3uZywdQs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=h/F5Cq9WNvGvysyDPEaqnz1Yf57+EmeOd1jYl/fjVpjMMmLhwBb+oQLdCzN8C+sFmpHIRluy6ysSTZWY/2CqcGYjOumMeHIgNaP1AXyYMy2HkLmGnAhSeuljNSx5JCA+aeh9ZQ95SQcB180ySLFx+9puzYDTu3iIaGGYZQrkKnA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=p3P2poTm; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="p3P2poTm" Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 631L6uEI033664; Thu, 2 Apr 2026 08:02:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=0GAbzszF88x0mMt/C nZcmr8doij4un+qelMRZozVp9E=; b=p3P2poTmZdWvYX9AhkZtNlIgU5daDCLT+ c8b5qSI6cRh8tLhHfce2lcVG7/rTq8ZMzMf6qjRJ/MMockhvIunNM4y1Wom1pjZY Ks8VqWf7/GCLzwJbbKY4kce/BNFMznz+RVkDBMzhq1SQCdZd5W/scgP9DnZsHx3a ROPMKfcsllKlhb0U1GH7INkdGof6zCLPOqoJpxlYgi1baoMW27uAMgKzCsxkBFem Grv07xDkZJrbMEzwFRNoIXoctr4fmgLvBunwkC46a7NE3u/U7xgtqJ20s3uAvODl V5W1jhQddnWTKpYM4x+Nz2TCPYFRsQ9YXbMnJD6BxaUmkc0sct26w== Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4d64dgu5t0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Apr 2026 08:02:18 +0000 (GMT) Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 6326noei013898; Thu, 2 Apr 2026 08:02:18 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4d6ttks4y5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Apr 2026 08:02:18 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 63282ENO44499310 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Apr 2026 08:02:14 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2D4592004E; Thu, 2 Apr 2026 08:02:14 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F16C22004B; Thu, 2 Apr 2026 08:02:13 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.87.85.9]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 2 Apr 2026 08:02:13 +0000 (GMT) From: Thomas Richter To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org, namhyung@kernel.org, irogers@google.com Cc: agordeev@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com, hca@linux.ibm.com, japo@linux.ibm.com, Thomas Richter Subject: [PATCH v2 2/3] perf config: Make symbol_conf::addr2line_disable_warn configurable Date: Thu, 2 Apr 2026 10:01:58 +0200 Message-ID: <20260402080159.2028733-3-tmricht@linux.ibm.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260402080159.2028733-1-tmricht@linux.ibm.com> References: <20260402080159.2028733-1-tmricht@linux.ibm.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 X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDAyMDA2OCBTYWx0ZWRfX4hcipJQSr7JW Qk7veaW5GYugz3gvuhF4FpgRJjE9cGShi7lX5KJ0vO0+QC3W1TQ4JG80Z43UH8EYN7Sha/CQam4 8GeG1Bdc82q9N+1Va6euqtHBcI0y3K725tYSb9bg2oJLrnT7CrBPR7yWMfrWf6h8oS93bZb5DQ3 liamxSvyJWZsP7K5DBydq2qgewAbeFRxkh0MMl1w6uT7O7aUhW+Rl+reWPeRjGLyiZW1CAXVpXT OPJUN0KlKb6urbruJ19BRqQqFYetCaE93W3HW/x/MYa34ubIu9LFkfxaS228xhRtQK74AH8DPek VQGn6arh1OPjm5BwjAvd/OYtkuTOgUfCTYxEIEe4lVHKn6S0BC9Qa8NpTIDtw+rBIdG9kvnzOWg kzGwNnVVtK5nLsYbcyKwjJsmm6gC5J8cISPs6tI8uglNwR2f/GNU2AEYOT77dx9ne9W1QyNGgW2 eZGDpX+9WdLd2BWIIiw== X-Authority-Analysis: v=2.4 cv=QKZlhwLL c=1 sm=1 tr=0 ts=69ce228b cx=c_pps a=3Bg1Hr4SwmMryq2xdFQyZA==:117 a=3Bg1Hr4SwmMryq2xdFQyZA==:17 a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=Y2IxJ9c9Rs8Kov3niI8_:22 a=VnNF1IyMAAAA:8 a=1XWaLZrsAAAA:8 a=zTooWrBoGe05qeUdyokA:9 X-Proofpoint-GUID: LVteUDG1EqwzjHFfOkoikG30ErLkKJnt X-Proofpoint-ORIG-GUID: iOmO77Werey5djHKHiYZzS6TSKXPw_uV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-02_01,2026-04-02_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 adultscore=0 impostorscore=0 clxscore=1015 spamscore=0 bulkscore=0 priorityscore=1501 suspectscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2604020068 Content-Type: text/plain; charset="utf-8" Make symbol_conf::addr2line_disable_warn configurable by reading the perfconfig file. Use section core and addr2line-disable-warn =3D value. Example: # perf config -l core.addr2line-timeout=3D500 core.addr2line-disable-warn=3D1 # Signed-off-by: Thomas Richter Reviewed-by: Ian Rogers Cc: Ian Rogers --- tools/perf/util/config.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c index 0452fbc6c085..31541e03aab7 100644 --- a/tools/perf/util/config.c +++ b/tools/perf/util/config.c @@ -461,6 +461,9 @@ static int perf_default_core_config(const char *var, co= nst char *value) if (!strcmp(var, "core.addr2line-timeout")) addr2line_timeout_ms =3D strtoul(value, NULL, 10); =20 + if (!strcmp(var, "core.addr2line-disable-warn")) + symbol_conf.addr2line_disable_warn =3D strtoul(value, NULL, 10); + /* Add other config variables here. */ return 0; } --=20 2.53.0 From nobody Fri Apr 3 01:28:27 2026 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 ADEF0397E7E; Thu, 2 Apr 2026 08:02:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775116947; cv=none; b=uj27e1nfEqpZGTFeFFptneMnLqQ3OGpzhVAOrjEAJX7nZkn1G9l+JaDeG1HnsW34q8OFhthD1a75GxKVHJRkyvtMldgFR/t3BI44Xyi9jAjzyJEg2UrrsQBifKYzpMktxzF/an5Phi/+Yiy6oegJMHxL3kgjfA47UX5O3azSNL0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775116947; c=relaxed/simple; bh=b+KE9PGQ8iyBuEVkUKDsatVlstQ68UWMV42nz9sXxko=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jsT38EwPJlQvsMYpRfBv52IuJ7rIRW56EeuIFHuJzl/X76TtnF8SWb+LBsjZU/NKvjxZAXGCibBhbMz6lOpCz26bC7ItI437ZjfOi1m4tSgwraNcMcGfOheblPLYNzZHu1KxXyyXRYejGE4F1aDJwjCcLy9M3FAoiCNQB++EqoA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=hHyeUTXJ; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="hHyeUTXJ" Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 631L8XSL523647; Thu, 2 Apr 2026 08:02:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=xbZJXI4zTid3mtxhB 5ldM3W1ifHga/Bfq76XYPw0by8=; b=hHyeUTXJSk9BKbjYgfuMuI70vsivxn0Cs xx50f2q6gZO7tvWaBZbA6pdB9XQIC59bzxJfOJVEF7lD5WfQqT/3QYgqTihb2AKl OZ69Dstv3qZnvszZ1VB1JWNNdfuayrV4Hvx/hOcdImjAC2i2Y6BhIy/wthN91kIt nDkDz601e63JkqgtOiaDjnQvmp7B2k2oIQhiERk+aXR0iwTsNkvdArQyjfDSRo08 yS1084BnTjSR8zJgnvAbVEA7XRXqpyP8QecWqR5veECyA6gl0ClXn2YtgKZ454xL H5WYBZZRThEm+UGAs8Tj/POy79+oB7P4Lea8Dqq+YVZvqqF248yHw== Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4d66g23x4h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Apr 2026 08:02:23 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 6326HTKL022165; Thu, 2 Apr 2026 08:02:22 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4d6tan96r2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Apr 2026 08:02:22 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 63282I3P12845470 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Apr 2026 08:02:18 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7548220040; Thu, 2 Apr 2026 08:02:18 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4DD422004B; Thu, 2 Apr 2026 08:02:18 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.87.85.9]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 2 Apr 2026 08:02:18 +0000 (GMT) From: Thomas Richter To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org, namhyung@kernel.org, irogers@google.com Cc: agordeev@linux.ibm.com, gor@linux.ibm.com, sumanthk@linux.ibm.com, hca@linux.ibm.com, japo@linux.ibm.com, Thomas Richter Subject: [PATCH v2 3/3] perf addr2line: Remove global variable addr2line_timeout_ms Date: Thu, 2 Apr 2026 10:01:59 +0200 Message-ID: <20260402080159.2028733-4-tmricht@linux.ibm.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260402080159.2028733-1-tmricht@linux.ibm.com> References: <20260402080159.2028733-1-tmricht@linux.ibm.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 X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Authority-Analysis: v=2.4 cv=Fdo6BZ+6 c=1 sm=1 tr=0 ts=69ce2290 cx=c_pps a=GFwsV6G8L6GxiO2Y/PsHdQ==:117 a=GFwsV6G8L6GxiO2Y/PsHdQ==:17 a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=iQ6ETzBq9ecOQQE5vZCe:22 a=VnNF1IyMAAAA:8 a=1XWaLZrsAAAA:8 a=6xuEHGHeGBblQts9ruwA:9 X-Proofpoint-ORIG-GUID: LhrSuG2lLWTLWEzPMDZvl59vUsEb9CJd X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDAyMDA2OCBTYWx0ZWRfX6McGI45CmI1j NCrIP98UKOR+HnzMyJja8IqsUKUz+3btzix5ZaT5pJY38yfP5Sdyr386tyyX8A16U22Zb0tpNue 9xZxbKyMucA0hCN6PrC/PePrJfACtHIZk/aRX6jUb4CstQkR9qi5UaeP1kRi3lSwGp1lZtzoPnM JMT5+dUjwviC4couqp3NkEqC91tt10+t9sNY0FBoM0HWrlNkiA47Z6WQMiWgk0FzZR8HPftSeda DINuJ3nq5BgY/1VWSRPuBaN7M+VLKDv+hnA58nSBkCBdrg9YPAo7dQDSPqyAHU5jtYy9ZR3fUu5 aVuv9bc3EO+jLeYEOwoISeys2zhg5ciRJe2lgtwoPwlvE+gX11loXpmWXne41rmhwbAMc0pwXHQ UqddQxKYVJrw7lqfAvxrCc4trxLQXyIHOvNkAsY4vWCd1gUjgio5lnfV6Z1livVXwItlVzCHwRz mZ7UJ6zD+LiPCTp9suw== X-Proofpoint-GUID: 9UBt2E5SJD-MiFOKHr2Q1eqX6vfAVOAs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-02_01,2026-04-02_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 bulkscore=0 suspectscore=0 priorityscore=1501 adultscore=0 malwarescore=0 phishscore=0 spamscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2604020068 Content-Type: text/plain; charset="utf-8" Remove global variable addr2line_timeout_ms and add is as member to symbol_conf structure. Update the documentation for perf config file. Fixes: 257046a36750a ("perf srcline: Fallback between addr2line implementat= ions") Signed-off-by: Thomas Richter Reviewed-by: Ian Rogers Cc: Ian Rogers --- tools/perf/Documentation/perf-config.txt | 6 ++++++ tools/perf/util/addr2line.c | 8 ++++---- tools/perf/util/addr2line.h | 2 -- tools/perf/util/config.c | 3 +-- tools/perf/util/symbol_conf.h | 1 + 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/tools/perf/Documentation/perf-config.txt b/tools/perf/Document= ation/perf-config.txt index 642d1c490d9e..efc15b6db7e2 100644 --- a/tools/perf/Documentation/perf-config.txt +++ b/tools/perf/Documentation/perf-config.txt @@ -206,6 +206,12 @@ colors.*:: Default values are 'white', 'blue'. =20 core.*:: + addr2line-disable-warn:: + When set to 1 disable all warnings from 'addr2line' output. + Default setting is 0 to show these warnings. + addr2line-timeout:: + Sets a timeout (in milliseconds) for parsing 'addr2line' + output. The default timeout is 500ms. core.proc-map-timeout:: Sets a timeout (in milliseconds) for parsing /proc//maps files. Can be overridden by the --proc-map-timeout option on supported diff --git a/tools/perf/util/addr2line.c b/tools/perf/util/addr2line.c index e9f084db0802..1b7f66ece570 100644 --- a/tools/perf/util/addr2line.c +++ b/tools/perf/util/addr2line.c @@ -18,9 +18,6 @@ =20 #define MAX_INLINE_NEST 1024 =20 -/* If addr2line doesn't return data for 5 seconds then timeout. */ -int addr2line_timeout_ms =3D 5 * 1000; - static int filename_split(char *filename, unsigned int *line_nr) { char *sep; @@ -87,6 +84,9 @@ static struct child_process *addr2line_subprocess_init(co= nst char *addr2line_pat return NULL; } =20 + if (!symbol_conf.addr2line_timeout_ms) + symbol_conf.addr2line_timeout_ms =3D 5 * 1000; + return a2l; } =20 @@ -335,7 +335,7 @@ int cmd__addr2line(const char *dso_name, u64 addr, goto out; } io__init(&io, a2l->out, buf, sizeof(buf)); - io.timeout_ms =3D addr2line_timeout_ms; + io.timeout_ms =3D symbol_conf.addr2line_timeout_ms; switch (read_addr2line_record(&io, cmd_a2l_style, dso_name, addr, /*first= =3D*/true, &record_function, &record_filename, &record_line_nr)) { case -1: diff --git a/tools/perf/util/addr2line.h b/tools/perf/util/addr2line.h index d35a47ba8dab..75989a92f16b 100644 --- a/tools/perf/util/addr2line.h +++ b/tools/perf/util/addr2line.h @@ -8,8 +8,6 @@ struct dso; struct inline_node; struct symbol; =20 -extern int addr2line_timeout_ms; - int cmd__addr2line(const char *dso_name, u64 addr, char **file, unsigned int *line_nr, struct dso *dso, diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c index 31541e03aab7..573b3a3f5999 100644 --- a/tools/perf/util/config.c +++ b/tools/perf/util/config.c @@ -19,7 +19,6 @@ #include "util/hist.h" /* perf_hist_config */ #include "util/stat.h" /* perf_stat__set_big_num */ #include "util/evsel.h" /* evsel__hw_names, evsel__use_bpf_counters */ -#include "util/addr2line.h" /* addr2line_timeout_ms */ #include "srcline.h" #include "build-id.h" #include "debug.h" @@ -459,7 +458,7 @@ static int perf_default_core_config(const char *var, co= nst char *value) proc_map_timeout =3D strtoul(value, NULL, 10); =20 if (!strcmp(var, "core.addr2line-timeout")) - addr2line_timeout_ms =3D strtoul(value, NULL, 10); + symbol_conf.addr2line_timeout_ms =3D strtoul(value, NULL, 10); =20 if (!strcmp(var, "core.addr2line-disable-warn")) symbol_conf.addr2line_disable_warn =3D strtoul(value, NULL, 10); diff --git a/tools/perf/util/symbol_conf.h b/tools/perf/util/symbol_conf.h index 21a1f096d4f0..6cd454d7c98e 100644 --- a/tools/perf/util/symbol_conf.h +++ b/tools/perf/util/symbol_conf.h @@ -80,6 +80,7 @@ struct symbol_conf { *bt_stop_list_str; const char *addr2line_path; enum a2l_style addr2line_style[MAX_A2L_STYLE]; + int addr2line_timeout_ms; unsigned long time_quantum; struct strlist *dso_list, *comm_list, --=20 2.53.0