Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2076968rdb; Mon, 9 Oct 2023 11:40:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxE8IYhe3Xoze0leZgK9izP+cqDc+fDFZHuNZ5stbspW07RVITanuPyISuXx49AjogOz69 X-Received: by 2002:a17:90a:e557:b0:277:3379:ce04 with SMTP id ei23-20020a17090ae55700b002773379ce04mr18218952pjb.18.1696876858220; Mon, 09 Oct 2023 11:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696876858; cv=none; d=google.com; s=arc-20160816; b=qmdtQP8VoR6rGSB+kfKlEVBPyOYh2LCrwUzYYJvVdkaUUFWaackBwN9w1d3l/ZrI/s g0xvIaLmbGJqzbWy/MjU63HkvOJqyoxjx/mxPO+/oifziUwBby0T6KIN2+7GymE4ib0C DkKM823nF+2bhZYR9X1xPNqf5VglhjztmoDh0NemxDDCHjq2Mvv+46hVir9h57S4HK3L 9Xr2wlzUNp6YFvM7HqvSilSOLuVG4yLW4gqRaanV3jrcV46lKQ3u9MdFM/Jrp5/RBLZq banQGPEgbeZiGi4AfWEB+huQ8SUNeCpICqGpJLDND08ENDm9mrscnCYiGTgz6p6CuRAm 3+HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=a3F7gnNpkmZUAErgbCdtUAHzB9Tx2qchcvlKXuBK3uQ=; fh=8uoRd8OfBKdrcgzCS0TCbKG83gg6rx5b6zeE6Tx82zI=; b=uWcIDTgfLppUIO8IYkJI4FXJ59Ku/Y2U8E0PZUbhmHmvKM3HQ07w5lWV2cFufeVQb8 /nz8GozaMCz3CmdRLQcrdIrROShT6N82Awb/oW8ppeBGrNu2IL8ebJAdWgfRCb4oq3L8 UEYFyluzpIFoZirYv25pmhzhuoFaCrYGnmGGD1SctGzJ8KQgdNSJL7Bwvo9m7GNKBKJC QAQCtwyXx0jsP78MunEFnWk0hEfeE/bCdcVo/ZDHvSXXWMx6W2ibOd/VT4CiDiQE7R8E CTvcTxgwE1+6JqVaWxMFHXP/dMKkJ9Gx8JXFBhPTzqabtqwUw7BQoBLyUJEM9yk1yBO4 r6Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=MXbm260r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id ci18-20020a17090afc9200b002774c98054csi10105444pjb.116.2023.10.09.11.40.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 11:40:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=MXbm260r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 165A981CA3FC; Mon, 9 Oct 2023 11:40:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378064AbjJISkb (ORCPT + 99 others); Mon, 9 Oct 2023 14:40:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378327AbjJISj6 (ORCPT ); Mon, 9 Oct 2023 14:39:58 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7426D3 for ; Mon, 9 Oct 2023 11:39:52 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-d81e9981ff4so6357503276.3 for ; Mon, 09 Oct 2023 11:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696876791; x=1697481591; darn=vger.kernel.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=a3F7gnNpkmZUAErgbCdtUAHzB9Tx2qchcvlKXuBK3uQ=; b=MXbm260rnEHiPY2SYzvEO0hTE+cAPwD+GczDzsavIBFpHbm2YQEyW2nX/ki7WncJ10 iFEkSHmUcPRnLm2YslotbhED70wdwyqrIsq7GiH10NnheniS8sQGeVW3CIxWppTru+Gh 4m+6+yOVx3XkfNRGnmzyrtu5GVEf9HI19fwaDzcmYLwaEbLw3EEVbSr729cHApib/TwH Enr8jpEBhxZkFxQSsaieQ7ZdOYa0Ni2X2LuDX3dPNTaIRbxzu3b2aAPsWqhH6djUx3VQ 4+OFeOffjtGYRMCmJy+ZxB/ZMI0l5J5d5vureUVF+5XsiloLhO4Uji8FLnaNNDNdljcG Q9Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696876791; x=1697481591; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=a3F7gnNpkmZUAErgbCdtUAHzB9Tx2qchcvlKXuBK3uQ=; b=LeowC+yqAtMc4LVh0ug0VAWSnJHDzK/VPbS4c08nK12R+XmqqW7b1Mu84U8CmTrV1q GWhVkYlolOFps6JISZ5UUTQrIaIYnVZ8eJPmkSiDc4pCwcbKN1nEa+L+2ef0+lvcXQyt /Mz9Nbd9cVc5J/iFJJJ0qf2ti7kQ5EwzZzATJj5FaWUmErW3y3RyKUXsBTrfHzg+gFr9 0ZTW4Mx4hTZ+jW3fUwF9iTb8P1NKXpiq/wUBwjAYfNYuNYdqHZciLDxD6XnFbF0Z5T9O bQstApInLVTYumijcOTgma6epOJDSUC2anyllVs4n/mYd5GcmQKOmrhicGsZHAogwQnD YX4Q== X-Gm-Message-State: AOJu0Yx8x4p+wsi5kG6B4uSuQYYHf13ujk4xfcOmE4l37ZJw1fFOO1dn XJH5bm8ZX1MYJhrcPfZINxgHr57+3B/l X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:ac4a:9b94:7158:3f4e]) (user=irogers job=sendgmr) by 2002:a25:f816:0:b0:d84:e73f:6f8c with SMTP id u22-20020a25f816000000b00d84e73f6f8cmr234275ybd.6.1696876791493; Mon, 09 Oct 2023 11:39:51 -0700 (PDT) Date: Mon, 9 Oct 2023 11:39:12 -0700 In-Reply-To: <20231009183920.200859-1-irogers@google.com> Message-Id: <20231009183920.200859-12-irogers@google.com> Mime-Version: 1.0 References: <20231009183920.200859-1-irogers@google.com> X-Mailer: git-send-email 2.42.0.609.gbb76f46606-goog Subject: [PATCH v3 10/18] perf hists browser: Reorder variables to reduce padding From: Ian Rogers To: Nathan Chancellor , Nick Desaulniers , Tom Rix , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Yang Jihong , Huacai Chen , Ming Wang , Kan Liang , Ravi Bangoria , llvm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-4.8 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 09 Oct 2023 11:40:54 -0700 (PDT) Address clang-tidy warning: ``` tools/perf/ui/browsers/hists.c:2416:8: warning: Excessive padding in 'struct popup_action' (8 padding bytes, where 0 is optimal). Optimal fields order: time, thread, evsel, fn, ms, socket, rstype, ``` Signed-off-by: Ian Rogers --- tools/perf/ui/browsers/hists.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index 70db5a717905..f02ee605bbce 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c @@ -2416,12 +2416,12 @@ static int switch_data_file(void) struct popup_action { unsigned long time; struct thread *thread; + struct evsel *evsel; + int (*fn)(struct hist_browser *browser, struct popup_action *act); struct map_symbol ms; int socket; - struct evsel *evsel; enum rstype rstype; - int (*fn)(struct hist_browser *browser, struct popup_action *act); }; static int -- 2.42.0.609.gbb76f46606-goog