From nobody Sun Feb 8 05:42:48 2026 Received: from mail-dl1-f74.google.com (mail-dl1-f74.google.com [74.125.82.74]) (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 A82C62F693B for ; Thu, 22 Jan 2026 17:58:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769104740; cv=none; b=Nau3LGL8SFJWj9TUIfOvrt7qcBRMXXJfNN35saWGAbwRnIYrFPHgMAhWEM57QLyn55OYLCp0kF/prciJ5wO+XZu/E3PQowWBJIt1LLLjEICrZuQ8gZ4635eaMWGLlbt/5P5w3GTNmdn/eNk4oZek2ntQFzCj34+EyJBvDVcswU4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769104740; c=relaxed/simple; bh=61ieGi6tgxBt9xA4874XhGbiTWFJlqnS1CJ8/YE/2+4=; h=Date:Mime-Version:Message-ID:Subject:From:To:Content-Type; b=OOF8BOZ2YbaEhBzGo2L5RretE7ExV1H3XsoPBY5hRuDLQl7o4DBdi9nT9RDimDu+4Pz8H4KiNW+owix7wVqUBde5BxR7dGU1WBpzqPJE9N+vrd7w+3Z2zjO4mgYJCUWp8OjfYtgnJ1OVLTTZp08X5tKrtaqCRY3bvMCXzqWYWRQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=UEIWb2nB; arc=none smtp.client-ip=74.125.82.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="UEIWb2nB" Received: by mail-dl1-f74.google.com with SMTP id a92af1059eb24-124743cf760so1834572c88.1 for ; Thu, 22 Jan 2026 09:58:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1769104730; x=1769709530; darn=vger.kernel.org; h=to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=ZtNnciwt61qdu/VZ1nvJdHEqwS5GTCcyAYHlwDlKrLw=; b=UEIWb2nBixitlJhCStVV6u0ORO5NXu8NX+9vcIC/lO7/HMCE/H2d+IOi1XNsiEAcMb Jkx3fAEHPrGGFtGsSQBcSyVu+kcyQe4FiIClFiurBHPtIFR/dDsvZvZPs8KJoDkdqndD grCj0+MM3YU46SggTQgoEiJ/CCr5ghDt9a7JoELLhIQe/T/tJVMlPO0yNHpoAau0bDIx gUMsPqOuWY0HFcvG37Vg4MQSRGZfpyNSE4piMInres7AXcLHW4+U5dQOfrOkHWtjUVUs j/e4JkCMvS05a0CExFPopUyHpG/Mh71V9xHBk6LOVla4H1YLpk9Cpp5l4zcUFMk+QKKB R1/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769104730; x=1769709530; h=to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZtNnciwt61qdu/VZ1nvJdHEqwS5GTCcyAYHlwDlKrLw=; b=qa0+ZpXjL7XPHGsKz8QKCdT1AkcI3ph5LJaSF8g12ZbdohwNfuF1L4jmhYA21WTsEd BlPqgS0i/ZeTCFcAJ2gN2SAQJGPl3l9Xjv9GGLHVL7I502X4jftSv+IgfiC+Q0o67mJq nhdam0tLeeBqQHHr0i/sH0ub+Zu6KYWt037KTne6dC9Z2N4HPN13S2WIRU8i0Yc8fSTk KXaeqdgdcxhap6f8UWdYpo+xfxB2XGRlMeUPe2qlC4usDZDilC4wshppjN4ZUiQiLzKY y2wZECblp+y9gL4TSGp7fdVaM8WPFniwIHZkWgbfE1alhldZlCD3UYMVgzZl/wzyOvck d0oA== X-Forwarded-Encrypted: i=1; AJvYcCV2rrlrL+dpMmnCuVk+LmUy13FieSm+UyQw133iG7xhbV6IoEudKS31lokpz4K1qNug+x3c6QWTXNcNjZA=@vger.kernel.org X-Gm-Message-State: AOJu0YzkLhKuhKMlNjAeZLSz4ou7cYCDucg9Y7FTJIYBEDQp1BhTeYjG MR57PQaxHjpGB7zzF1kvIfZ1cKNw48hf65+O/T6SfxtxyKAkGFBIK6eV8wzisxo9AnFUHAgjV89 uxrUgPn0EGg== X-Received: from dlbrh26.prod.google.com ([2002:a05:7022:f31a:b0:124:4ff9:fb25]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:618e:b0:122:2f4:b24b with SMTP id a92af1059eb24-1247dbf8d52mr73222c88.25.1769104730026; Thu, 22 Jan 2026 09:58:50 -0800 (PST) Date: Thu, 22 Jan 2026 09:58:46 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.52.0.457.g6b5491de43-goog Message-ID: <20260122175846.592786-1-irogers@google.com> Subject: [PATCH v1] perf inject: With --convert-callchain ignore the dummy event for dwarf stacks From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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: 92ea788d2af4 ("perf inject: Add --convert-callchain option") Signed-off-by: Ian Rogers --- tools/perf/builtin-inject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-inject.c b/tools/perf/builtin-inject.c index c89ac85ec112..ea3ac35256ce 100644 --- a/tools/perf/builtin-inject.c +++ b/tools/perf/builtin-inject.c @@ -2727,7 +2727,7 @@ int cmd_inject(int argc, const char **argv) } =20 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; } --=20 2.52.0.457.g6b5491de43-goog