Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 3D8BA434E2C; Tue, 21 Jul 2026 20:10:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784664648; cv=none; b=nioNf/bzVKmHa9Pe1Siw9nHTY2Cc3JRuEHMazjlh4a3ncqZ5PqQcpm3HZdk32iE+i9v7+rZXNZ1433xVxZeSDuhgKXkZnCwpWk0GCunSjUAUPYgiXI0uZGjUV3zvzhEeTvgJiNH8vtp+GPgAn+ofBADXFQNDAbyBzjLQ0c0Usb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784664648; c=relaxed/simple; bh=pQy2BIDeXMI0HbfdLUskUAsJjVUNsXi/9bQwxiOh3Nc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hvtEb8eupTKqGAAd1PATXyv8q9vGs1ieLe7tdEWuLQI7NaWMRkbQ20y4hZGl3uUOZDOMo9AI32Z+E9ndFY3HQyfRk8rIRuZVWPZSIRsKRvZRS02w7vQs7uzbClaOSPcPz6iVs536bTWxB1MKIOQspGnsTr+agQ9HBuq8WAx4u70= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=I6FynyE5; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="I6FynyE5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A15F41F000E9; Tue, 21 Jul 2026 20:10:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784664646; bh=fdpwAOcNmGygMdAnDHVm1YK7KNYdh2hJivrVIRXY/Ng=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=I6FynyE5d+tUx/P5hP6B8y6ekyqdBuyGuYyH4N8Hx0W5jk4iLmqgI8hzjGCw0uMhR 6rYVq/sLxxTPwtaxk0WH8uNOLc/Iunh1dZkFIZldqBTGwI9ljZg+FEitaWdM3TlEOL ZInrXzdY+QOp1A6Zn+BXNbKuQnZl782AWseY9p7U= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ian Rogers , Arnaldo Carvalho de Melo , Adrian Hunter , Alexander Shishkin , Ingo Molnar , James Clark , Jiri Olsa , Namhyung Kim , Peter Zijlstra Subject: [PATCH 6.12 1249/1276] perf inject: With --convert-callchain ignore the dummy event for dwarf stacks Date: Tue, 21 Jul 2026 17:28:12 +0200 Message-ID: <20260721152514.047327442@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152446.065700225@linuxfoundation.org> References: <20260721152446.065700225@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ian Rogers commit e786a04b4a5461dd7e2829422314a5a6d5a664d9 upstream. On hybrid systems there is generally >1 event and a dummy event. The perf inject --convert-callchain option is failing to convert perf.data files on such systems reporting "--convert-callchain requires DWARF call graph." The failing event is the dummy event that doesn't need to be set up for samples. As such ignore this event when checking the evsels. Fixes: 92ea788d2af4e65a ("perf inject: Add --convert-callchain option") Signed-off-by: Ian Rogers Tested-by: Arnaldo Carvalho de Melo Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Ingo Molnar Cc: James Clark Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Greg Kroah-Hartman --- tools/perf/builtin-inject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/perf/builtin-inject.c +++ b/tools/perf/builtin-inject.c @@ -2739,7 +2739,7 @@ int cmd_inject(int argc, const char **ar } evlist__for_each_entry(inject.session->evlist, evsel) { - if (!evsel__has_dwarf_callchain(evsel)) { + if (!evsel__has_dwarf_callchain(evsel) && !evsel__is_dummy_event(evsel)) { pr_err("--convert-callchain requires DWARF call graph.\n"); goto out_delete; }