From nobody Sun Feb 8 20:52:15 2026 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 BF44137883F for ; Thu, 22 Jan 2026 16:54:41 +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=1769100895; cv=none; b=d2jVgk9oRh6EhKiDPnbkbAIq+XcXV5Oz2JI5hHfB+v1XbSRJmCOdV0yPJ+XZ3IXO8JX7IP41rO9DEtK/wxPvwj0mDQ8hXDU6cjC6HEGws3Dsu2ssN514FFhSUYtgseOWMUlhlU7vGtpA0dMj3m0Oyq3ezzDy39vFpyRH4bY3Or0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769100895; c=relaxed/simple; bh=DNIcWZ9QKgcap8GIm+HHaS7sytvjKF8lN4kZaGLyU7M=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Content-Type; b=L11uTGe4YrQlX1X09AQY+jrXKdPEMfPmR2/P+K+XolBetG/51GV1zXTrCHdN/hcZmi9LZXEP5n0VYT0z9YZXkUREfMB0ojZIPIjBzOBXGxraLEnIJwwZytwvHIsiVZy4qHxfFR1zu4iRqxtzStvckXc722kq+dBFj5qD1cbLzHk= 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=xt1PmwZs; 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="xt1PmwZs" Received: by mail-dy1-f202.google.com with SMTP id 5a478bee46e88-2b722bc1be1so934270eec.0 for ; Thu, 22 Jan 2026 08:54:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1769100877; x=1769705677; 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=xt1PmwZsaUx4dgkEzsUbAq8Wq3pjhpNJofXV83Ct6qieDEbvBOPY2UI/mTXdyghxT0 f4sRXOmpmMPIe/o8THF+nmOuDhig9ghl+SkL+YSq0/rzdXw1FotT8tcVcyShI1KLp40X BmJFIB1O3NQR7S/bDNtJ+s0XGNftHQcanMg4vz1tm9icm7QtNdwOOfFDwv6BsnyP8BDY /5yeMoOAknT5XNXv5lCa+GqB/8C537g6Ubh1CS3SGRZC+Lg6ke34TDPFNxlrfICKmMHi aWDzS+KARNj1t3Qy2YfweAoFJpGSuk/3/sYYdNKRaH3O8okwaYS3V9nUtOFwZrzxFD+J ETJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769100877; x=1769705677; 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=L+T/TBaczHXi7BLUSXaWIEEHtIGtCtcolnh88nanY6h2FSQtkDYmQqg3LOHjF68OgG n54JHxMtmwga2KoM4hdhdowmMr6iEGecdZAYxqaywFmCWNbTIkDjnozBHUBRv30IQvy+ LSE8YdwqumkexYqAi2ueE9h06n7YK1W9W5cDWtZX3vH98zpP0/YFKowrW6Fn797Ajhwn to3CzJBsoa1Gr4/8yY9lr8QlebXPQ2SRNy/IGzUnKOeG/iAcvUtzgdy6f9GFEor7L5DK YJfe1FPhS96gJ2SVcezj572yex+O9hU++HgZ3NfWJGAWeij6qk77FO4xjDrUfagedAjk SGvA== X-Forwarded-Encrypted: i=1; AJvYcCVoA+zhLzQF8Ur2S0wmqzA7St11K0zWUsXkQAZSCdkYa7bEUbyjoFBxBOb8u94sE3kLn/P9Pc5Do7m7GQ8=@vger.kernel.org X-Gm-Message-State: AOJu0Yyf+/UYNJdZGOfdewLAiC4Xn8FBhqXZGbs0BXR+lPpDpeNFUYJY bxFV77WR/G+HDFl3GcyrKKrXaW0iHpV8buYPZ0USKIPr0npPmVY0YCILYAhwGfJOZoNgInKHPfY yDwg5D3uNmQ== X-Received: from dlbph24.prod.google.com ([2002:a05:7022:3718:b0:121:766b:11e4]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:7022:b94:b0:11b:8f02:a876 with SMTP id a92af1059eb24-1244a75eb07mr15601672c88.23.1769100877336; Thu, 22 Jan 2026 08:54:37 -0800 (PST) Date: Thu, 22 Jan 2026 08:54:07 -0800 In-Reply-To: <20260122165407.561888-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: <20260122165407.561888-1-irogers@google.com> X-Mailer: git-send-email 2.52.0.457.g6b5491de43-goog Message-ID: <20260122165407.561888-13-irogers@google.com> Subject: [PATCH v2 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