From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f202.google.com (mail-dy1-f202.google.com [74.125.82.202]) (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 AA4F439150B for ; Fri, 22 May 2026 22:04:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779487498; cv=none; b=Ta9gKNtE+vxkSV0td+MJoUR/3cHYDxdY+dVP/aOq1h+WU6inpeG5ioJQjDinZKgQK7GdHop94pdsOfNQyJMQgrws9ZC1WlUnLhbjK3/P+r4/yJZsYWvdlTMS+4MhATpFCgs+X2KGTuh8A57/Z6yZFD5Q/UTBu5KDMS/SOOYF43k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779487498; c=relaxed/simple; bh=2FEiYgRloAO+itB1RzuEhbQ8K3QggZNls0cui+7Sh1s=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Q/Nf3hO0FRjXvWtDKbaj/4IesiigV9jsOuJfuXnNuWGq0+rupKRWI+3wjsehSo24XfDP+qSRpqCASBtDY0XfLbeJMclhCPlFPcRWwzYWkSwV27bBEuzlB+mP2169OO++RFP1pjLV+pT0qm5KZ7SrN/ylZTHGf/sxDWVLpGbaQQE= 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=SzctptTu; arc=none smtp.client-ip=74.125.82.202 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="SzctptTu" Received: by mail-dy1-f202.google.com with SMTP id 5a478bee46e88-2ee5b73c5f2so9414244eec.0 for ; Fri, 22 May 2026 15:04:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1779487488; x=1780092288; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=RZckQ+HwuCc0wRxxb6eUJU/ilfr6Pz3oy2PsBDZSEIc=; b=SzctptTuHmAAVXX3bb8w1ZSPJ0fc+KFF39mLvZ1BHmiIReEvTp+l+t0ZWwfzZ/v3Sq gapyk4kVcleUUZ55XcjoYGmST3fyKep1RkCU+EJ4/1V5hqVawKpVqj+Iuv85xv6QB8uV SqOuinUO8BueQeYuxFqy0oCDtv4lVzFY0liglzfXb1QfM45jFnZ0zSgnblK85IA/uDfq /Gbey3q+IFPrtCDgFdvLrqvt2AFAtJF2GqJvGd/zE4OMjvrn/82iSBD8Ds3Y8Srq4oKv k75+CwI6celZCSsNEo0J4hvAuJNyqMjG46ERZgwt4kUXv4XWqTWDNi746DZ8ZpJb15ex 7TOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779487488; x=1780092288; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RZckQ+HwuCc0wRxxb6eUJU/ilfr6Pz3oy2PsBDZSEIc=; b=Z59pYnsYgW313EZLSObxO0G9/awpfPm0672ZpDR81hjTLeM01avVt8TigDe/V/pENp l/BjWvCG8FLGqw0UlyGbApLN1eHxViSMvbvZyZJtqoUy/B2ntAo4HZxWNZnIys4s1w0e OHVYeynm3+6Y78DMQImQgQVuB7wwgxK6TgICWFPpxMwx1pRv+ZXcfM9Z1uM/edZdY3fr kYQC7Y9otfIEqY8ChT+RX84L7UZN7hy1XR6I3eIbJm7s7bt5oyeEj8qhTDz/qqShZePu OGJi9MjbE55xwZtG7exB78I5FzYOljW2IEeJUo7F7dWU32++0wlVd0m/AqbdDqXvahoX fnXg== X-Forwarded-Encrypted: i=1; AFNElJ/NzkGL2HCVxp65iXGKRzcTtPzxNqbUYLYIJCOeN0pqj4bNt4Q5Wl+VEcH8wT0Y5970qxif+PC57LHfFh4=@vger.kernel.org X-Gm-Message-State: AOJu0YyQ301V6hHH/e6eEOwPOWOZ55QnyoMgB7O6FQfR8iaKRcXd1aHm jQL2qWDjumhZP4/6dlJkVVHdD0XPSLu2ME29B8UmtRRezWY1HMMgbAPCv++MQwd0auZiFnQOb97 MLUcT8lVIxg== X-Received: from dyaz19-n1.prod.google.com ([2002:a05:693c:6393:10b0:303:98b0:efec]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7301:650b:b0:2b8:5159:eca5 with SMTP id 5a478bee46e88-30449024b3bmr3046039eec.14.1779487487711; Fri, 22 May 2026 15:04:47 -0700 (PDT) Date: Fri, 22 May 2026 15:04:15 -0700 In-Reply-To: <20260522220435.2378363-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260428071903.1886173-1-irogers@google.com> <20260522220435.2378363-1-irogers@google.com> X-Mailer: git-send-email 2.54.0.794.g4f17f83d09-goog Message-ID: <20260522220435.2378363-5-irogers@google.com> Subject: [PATCH v9 04/23] perf script: Sort includes and add missed explicit dependencies From: Ian Rogers To: irogers@google.com, acme@kernel.org, namhyung@kernel.org Cc: adrian.hunter@intel.com, alice.mei.rogers@gmail.com, dapeng1.mi@linux.intel.com, james.clark@linaro.org, leo.yan@linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, tmricht@linux.ibm.com Content-Type: text/plain; charset="UTF-8" Fix missing #include of pmu.h found while cleaning the evsel/evlist header files. Sort the remaining header files for consistency with the rest of the code. Doing this exposed a missing forward declaration of addr_location in print_insn.h, add this and sort the forward declarations. Signed-off-by: Ian Rogers --- tools/perf/builtin-script.c | 111 ++++++++++++++++++----------------- tools/perf/util/print_insn.h | 5 +- 2 files changed, 60 insertions(+), 56 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index c0918006e0ab..e330ae7f725e 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c @@ -1,75 +1,78 @@ // SPDX-License-Identifier: GPL-2.0 -#include "builtin.h" +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "asm/bug.h" +#include "builtin.h" +#include "perf.h" +#include "print_binary.h" +#include "print_insn.h" +#include "ui/ui.h" +#include "util/annotate.h" +#include "util/auxtrace.h" +#include "util/cgroup.h" +#include "util/color.h" #include "util/counts.h" +#include "util/cpumap.h" +#include "util/data.h" #include "util/debug.h" +#include "util/dlfilter.h" #include "util/dso.h" -#include -#include "util/header.h" -#include -#include "util/perf_regs.h" -#include "util/session.h" -#include "util/tool.h" -#include "util/map.h" -#include "util/srcline.h" -#include "util/symbol.h" -#include "util/thread.h" -#include "util/trace-event.h" +#include "util/dump-insn.h" #include "util/env.h" +#include "util/event.h" #include "util/evlist.h" #include "util/evsel.h" #include "util/evsel_fprintf.h" #include "util/evswitch.h" +#include "util/header.h" +#include "util/map.h" +#include "util/mem-events.h" +#include "util/mem-info.h" +#include "util/metricgroup.h" +#include "util/path.h" +#include "util/perf_regs.h" +#include "util/pmu.h" +#include "util/record.h" +#include "util/session.h" #include "util/sort.h" -#include "util/data.h" -#include "util/auxtrace.h" -#include "util/cpumap.h" -#include "util/thread_map.h" +#include "util/srcline.h" #include "util/stat.h" -#include "util/color.h" #include "util/string2.h" +#include "util/symbol.h" #include "util/thread-stack.h" +#include "util/thread.h" +#include "util/thread_map.h" #include "util/time-utils.h" -#include "util/path.h" -#include "util/event.h" -#include "util/mem-info.h" -#include "util/metricgroup.h" -#include "ui/ui.h" -#include "print_binary.h" -#include "print_insn.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include "asm/bug.h" -#include "util/mem-events.h" -#include "util/dump-insn.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "util/dlfilter.h" -#include "util/record.h" +#include "util/tool.h" +#include "util/trace-event.h" #include "util/unwind.h" #include "util/util.h" -#include "util/cgroup.h" -#include "util/annotate.h" -#include "perf.h" -#include #ifdef HAVE_LIBTRACEEVENT #include #endif diff --git a/tools/perf/util/print_insn.h b/tools/perf/util/print_insn.h index 07d11af3fc1c..a54f7e858e49 100644 --- a/tools/perf/util/print_insn.h +++ b/tools/perf/util/print_insn.h @@ -5,10 +5,11 @@ #include #include -struct perf_sample; -struct thread; +struct addr_location; struct machine; struct perf_insn; +struct perf_sample; +struct thread; #define PRINT_INSN_IMM_HEX (1<<0) -- 2.54.0.794.g4f17f83d09-goog