Message ID | 20240711180008.188906-26-irogers@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3DCFAC3DA45 for <linux-arm-kernel@archiver.kernel.org>; Thu, 11 Jul 2024 18:07:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:To:From:Subject :References:Mime-Version:Message-Id:In-Reply-To:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=2MNiLSniwVv1E9e5Lf2m3HZTOrICLuX9boz579z3/KM=; b=c7gBXm1p21j3mZTC2XWA4s++dX AQD9JZF1KKkcWzLhh/vVfl2IZAmPU9Rpe6XjZSGQMNH+kit0H8RcUtt07DQGW3IAEH0l8br/yES6B EMvBtz1POPtnTtiiRMZ7bAYcc28cVvv2K1oOW+feG/9Wk29CejRiGWRlD0KqszX02Nur9cnp+yKRD T+GmCYJGWIQa/NCPhulXQLuv6wy9YDxNPWhLvarYskq6KFv+bC2euA8k55Hd9Xn2COLx89RXZlY11 P5EeG9/32dX2md/3LHuzAQgDC2fLrM0maO5FsZziuwV9YiqOdvBPS2zY5/VQ0zuocDdaSs0jhTEK3 UBKYYA5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRyCY-0000000EzRH-0faM; Thu, 11 Jul 2024 18:07:30 +0000 Received: from mail-yw1-x114a.google.com ([2607:f8b0:4864:20::114a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRy6P-0000000EwYw-3u4j for linux-arm-kernel@lists.infradead.org; Thu, 11 Jul 2024 18:01:11 +0000 Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-654d96c2bb5so18877257b3.2 for <linux-arm-kernel@lists.infradead.org>; Thu, 11 Jul 2024 11:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1720720869; x=1721325669; darn=lists.infradead.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=2MNiLSniwVv1E9e5Lf2m3HZTOrICLuX9boz579z3/KM=; b=oxGbGPzldwt5NUt9hNEU69uDwA+oWo0wBmvt4adcicpHDwwH6YssRLJyAbvQrUpq6d NtvEA/WgiSj3mMoxg0VIPyvpQ/StcDs9rSZfF7DtSj1+eFjtbUPjVKqZt+q8YRpCDF+j zxkvt7nDkCVk31NMwfoBHus+aBxKAZhEnccZXVMbnn/x5rZBcIJuag9utWq46CEsbX3C WdJiMntZouXhPIzWdzXeRt0uWdEycRzPSRIcNtzvtXQqZjDyupkMDat7vfDcrxmqGCBB un58mVhXPcm9U6JHVmbCUmd+daeTwhDZ2MQGtB3kibhKs2AO5plE3Ds3BNcEgl2WO1bK SjMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720720869; x=1721325669; 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=2MNiLSniwVv1E9e5Lf2m3HZTOrICLuX9boz579z3/KM=; b=Z5rGAoH6XJxzyxpj3ysWXbYyKx6llXKO8snyfxZugf+YgqnT3ODjMt1zZPz3PsPWsD Wt0ALSV5ZDHuEjMvN7Lzct/Eae9yqq9kzHfaZiNUakkq+VeIKNuUFywMMEhc0ITK6C+Z 9l5gR9EoD2digfn3OoWh9RVjMESLHrf0rhAm+n4zzlbwnuJu8DS6u5KUK0yEK/Pn4RtJ S51fe+svyemZ5dYwOt1YnV1aGSCoX3eIQkUQKfbU7ersuMpBLmdDX/T86o+tzx6bnmG7 iU7U/sRnCTK01y6Tnz4MB2dgVkfxfo9rTuqqizi4gB3spvONadebCRixHsYpO0A+6PlU aCuw== X-Forwarded-Encrypted: i=1; AJvYcCVkz1fJBmPJAw1qOpFglicVpqLOGTkUuV2RVFTkODabNgg5ih4IOBjLCUiPoVugifZxL4egg1spyxkRMeSYIUHNqkMjA7IKN1kUxCZacpIZMkYuNLY= X-Gm-Message-State: AOJu0YwYMXpO8kiZ+mVxZtzVIrg3o5KIt+SToYdCcFSZDfPUzLuw7kdr ry4BsuMvm1JZIsQ+939zRaoYkQEfFxhBDaqF9RdvFkRNLzy98Ws9S2urv38H3GruF41Q88R8IWW FISHsmA== X-Google-Smtp-Source: AGHT+IGM2xQme0Hs8QJpMwRrl0GnjElIf4QWIdg7meyT8+jpTN98FNf8secObYryk9mDw0GyqbyaX812usu1 X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:bd08:a1e0:c497:32db]) (user=irogers job=sendgmr) by 2002:a05:6902:1206:b0:e03:59e2:e82 with SMTP id 3f1490d57ef6-e041b134afbmr16523276.10.1720720868643; Thu, 11 Jul 2024 11:01:08 -0700 (PDT) Date: Thu, 11 Jul 2024 11:00:05 -0700 In-Reply-To: <20240711180008.188906-1-irogers@google.com> Message-Id: <20240711180008.188906-26-irogers@google.com> Mime-Version: 1.0 References: <20240711180008.188906-1-irogers@google.com> X-Mailer: git-send-email 2.45.2.993.g49e7a77208-goog Subject: [PATCH v4 25/28] perf test event_update: Ensure tools is initialized From: Ian Rogers <irogers@google.com> To: Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@kernel.org>, Ian Rogers <irogers@google.com>, Adrian Hunter <adrian.hunter@intel.com>, Kan Liang <kan.liang@linux.intel.com>, John Garry <john.g.garry@oracle.com>, Will Deacon <will@kernel.org>, James Clark <james.clark@arm.com>, Mike Leach <mike.leach@linaro.org>, Leo Yan <leo.yan@linux.dev>, Suzuki K Poulose <suzuki.poulose@arm.com>, Yicong Yang <yangyicong@hisilicon.com>, Jonathan Cameron <jonathan.cameron@huawei.com>, Nick Terrell <terrelln@fb.com>, Nick Desaulniers <ndesaulniers@google.com>, Oliver Upton <oliver.upton@linux.dev>, Anshuman Khandual <anshuman.khandual@arm.com>, Song Liu <song@kernel.org>, Ilkka Koskinen <ilkka@os.amperecomputing.com>, Athira Rajeev <atrajeev@linux.vnet.ibm.com>, Huacai Chen <chenhuacai@kernel.org>, Yanteng Si <siyanteng@loongson.cn>, Sun Haiyong <sunhaiyong@loongson.cn>, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240711_110110_056692_2F70989B X-CRM114-Status: GOOD ( 10.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Constify tool pointers
|
expand
|
diff --git a/tools/perf/tests/event_update.c b/tools/perf/tests/event_update.c index fdecad920f59..d6b4ce3ef4ee 100644 --- a/tools/perf/tests/event_update.c +++ b/tools/perf/tests/event_update.c @@ -103,6 +103,7 @@ static int test__event_update(struct test_suite *test __maybe_unused, int subtes TEST_ASSERT_VAL("failed to synthesize attr update scale", !perf_event__synthesize_event_update_scale(NULL, evsel, process_event_scale)); + perf_tool__init(&tmp.tool, /*ordered_events=*/false); tmp.name = evsel__name(evsel); TEST_ASSERT_VAL("failed to synthesize attr update name",
Ensure tool is initialized to avoid lazy initialization pattern so that more uses of struct perf_tool can be made const. Signed-off-by: Ian Rogers <irogers@google.com> --- tools/perf/tests/event_update.c | 1 + 1 file changed, 1 insertion(+)