From nobody Mon Feb 9 00:54:38 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 1C1783793B7 for ; Thu, 22 Jan 2026 21:35:49 +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=1769117761; cv=none; b=AnocQB0Wg7VGSIj7XKWOgl0DFkGUCDDwrN/S+Qp8ISHkJ2l/36wivxzlHY8FpmhjM70UVFcaL1UzpDGA4sCVRM+rzP3ryx31FVSrBhaHcmczUYYC02y541FlZNN9M28pKqR7xi4aFX8ATGJHJrURpmFkED0wGeZkKu3A1K9m4GU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769117761; c=relaxed/simple; bh=DNIcWZ9QKgcap8GIm+HHaS7sytvjKF8lN4kZaGLyU7M=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Content-Type; b=iRJaRurDq2miYfat5l4+TWUw9uoyIdVtGs+2LrFonWXXIxGkz4foD/WK+0SK1Fvi7jXqSP6edsbrjjSA2Q1CFkNHuZ17yjvDpk4jsjtZ/opqzOkU1zfrMJapKvkRxjIJ5QFtL3Y/2t9TzFt2EbmcNbMYoBAh+MCbuXzClPMYQN4= 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=wKWmKvYz; 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="wKWmKvYz" Received: by mail-dl1-f74.google.com with SMTP id a92af1059eb24-12454b0a1a2so5063183c88.0 for ; Thu, 22 Jan 2026 13:35:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1769117746; x=1769722546; darn=vger.kernel.org; h=to:from:subject:message-id:references:mime-version:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=6zuXMW9ePaQZdk+//RX5ln7bDZ0bQbPZ3cyiYbZ9aMU=; b=wKWmKvYzy3/ctOsKHoZ2kONjlphKfLXMcsQbDkvqq0IffuJy0sKZsJ8X/3YiEOCSnj NEaGOx0tMtCnJAMGHU/6KXRhFcuBfKP5iuAMncm0hQGF7RGOYWGLQbZhlJjghPGAuFPA 2Wj2fzdPdSyDw1K1t6po3kCUlNKH9bgPZKuXE2IHvR4oi90QGyEKGxgGCc7fDFidVorE VOMGdDCT4JSClpBN6C7zxKpUdhYN2Iq1E2ZdtQnW4jKVgIoy/3jynC/Bg6CUTDc6zmZJ TBvlSQ6aHP5D1wqMK+ADHcbW5kJ7HqL/7Kk6IY43Gmcus9jLqjMd5RR0nZbTgFudBzWH pwhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769117746; x=1769722546; h=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=6zuXMW9ePaQZdk+//RX5ln7bDZ0bQbPZ3cyiYbZ9aMU=; b=YP7tag0JeQna+aLf37i++sQdWim3B1QKmpYi1BcMdpSM0VF6t41ISl0BOja8Q6IPgw jlSorss3pi8C+aTooWTcS+cXGuHFi1ISk70fcU7SlBLNpftrR7jdHSoxZHxC2KlRq+Uh 4y0BuUYXPf4VsANo0hK5IluSBLeDixSF3t/l1W22qsg95R4q3MoVrJbDEknapByio0PM BZXv8BwZCrj+sgOKsE2d6TC8GMig/oHs8mq8s6GHlMG9tDfaNYrk1D7W0nBON/QFb66j WcLX7GE3mUCkk6K/PjvGExTU3Q1xq0kYBXWiXGuIN3V/tTR9Mu+RbDy+h7yovsuYoIuc +5uQ== X-Forwarded-Encrypted: i=1; AJvYcCUjQJOgp1AEbLQL3LC+DLvDw+p5CWrBXnY4qXCtJZWEhwtIMUeW2iZX3Y6eAjatLVYqpqenW9ANiMQMEHw=@vger.kernel.org X-Gm-Message-State: AOJu0YwWgMAqfAQmg25SGo4qTgIvryV6OBf8XVHuFEcIJVO6Y5DQT5Rv z40zsdx0yf8sV8TSwfOCjG+JZR7/Po+MWnYdmYBKw7wd9Tg4PXNwUJ/g+yE1AvEbm88wrLZvgQJ aMfOPEkZxUw== X-Received: from dlzz28.prod.google.com ([2002:a05:7022:49c:b0:123:360b:d5f6]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:6981:b0:11a:4ffb:9825 with SMTP id a92af1059eb24-1247dbad26bmr458271c88.6.1769117746365; Thu, 22 Jan 2026 13:35:46 -0800 (PST) Date: Thu, 22 Jan 2026 13:35:16 -0800 In-Reply-To: <20260122213516.671089-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: <20260122213516.671089-1-irogers@google.com> X-Mailer: git-send-email 2.52.0.457.g6b5491de43-goog Message-ID: <20260122213516.671089-13-irogers@google.com> Subject: [PATCH v3 12/12] perf disasm: Minor layout tweaks for struct arch From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark , John Garry , Will Deacon , Leo Yan , Guo Ren , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Zecheng Li , Tianyou Li , Thomas Falcon , Julia Lawall , Suchit Karunakaran , Athira Rajeev , Aditya Bodkhe , Howard Chu , "=?UTF-8?q?Krzysztof=20=C5=81opatowski?=" , "Dr. David Alan Gilbert" , Shimin Guo , Sergei Trofimovich , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-riscv@lists.infradead.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Pack some holes to bring down the overall struct size from 96 to 88 bytes. Signed-off-by: Ian Rogers --- tools/perf/util/disasm.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/perf/util/disasm.h b/tools/perf/util/disasm.h index 2793d48aa04e..6a1905f9d4fc 100644 --- a/tools/perf/util/disasm.h +++ b/tools/perf/util/disasm.h @@ -18,22 +18,22 @@ struct type_state; struct disasm_line; =20 struct e_machine_and_e_flags { - uint16_t e_machine; uint32_t e_flags; + uint16_t e_machine; }; =20 struct arch { - /** @id: ELF machine and flags associated with arch. */ - struct e_machine_and_e_flags id; /** @name: name such as "x86" or "powerpc". */ const char *name; const struct ins *instructions; size_t nr_instructions; size_t nr_instructions_allocated; - bool sorted_instructions; const char *insn_suffix; unsigned int model; unsigned int family; + /** @id: ELF machine and flags associated with arch. */ + struct e_machine_and_e_flags id; + bool sorted_instructions; struct { char comment_char; char skip_functions_char; --=20 2.52.0.457.g6b5491de43-goog