Message ID | 20240712181108.475336-25-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 100D4C3DA45 for <linux-arm-kernel@archiver.kernel.org>; Fri, 12 Jul 2024 18:19:12 +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=RQKpV69dGY9j3OzxApnFCc2erM J9EXTRNjAHdsLhI0jfcajOkd5BY5y6TU5cdvSADUiwba4o/7+iIA/CazlMAgEOlmdM86l6iXRiRIt JLsfBp8XOSaaVaZLr1hXTlA+dgBkllFP+5BOK2AQAwNIQ45h0wkZjsfjiTizIoGHXTOlLNQiHQKzs SuT25IcBJU9ig/h2NuXlEwyv1GkkRhsXZwtKeRtjuuT0Fm2q24eSgVPlxwkKtwfpWMSY9WHYp/gYG +9hLFRWWO1bDYMUC0KZJRAoS+RtZvlm5YAxjMPwQTrzl/00UJurigyiJ9gwWk3MNtI0EzV1Ns8JNj TFYO/DMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sSKrE-00000000yBW-3jGs; Fri, 12 Jul 2024 18:19:00 +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 1sSKlU-00000000vcm-2yME for linux-arm-kernel@lists.infradead.org; Fri, 12 Jul 2024 18:13:05 +0000 Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-64b5588bcafso39773327b3.1 for <linux-arm-kernel@lists.infradead.org>; Fri, 12 Jul 2024 11:13:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1720807983; x=1721412783; 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=1ge49T/wUOLlo25BbQfJU+JZpTb7NaDtrWSKJpwxJrDP9z//PaYIpEp4MhWfDvlM+H w2/mffSARriK10hnR34xZ82NaZ1TkL2do5/NZZ3je2FqRQSA5sn2hh+toDpjUD9Pteqs Jwixwinhq7FJK13ie1WfN9F9dZnI/cPYlNkogXd4DNos6SO5HMryMMneVxrZX68QaVqD qtUNn4pknGWF4ABbH8/rAinrKEYCt0mnxqka6a9h5F3QFhv8a8F+attrS41VFD1W1FUM P/QsOeJ11iXIUfMM12wxh+ajyjwT2fV+O/rSZaMJrSFXYqrfRbluDPMACDhSkfGlQR1L X+rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720807983; x=1721412783; 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=XCvy5Yfjj+WqpLjslC9a3H+iFU1tTn3+SGNgLJPQtLyFmL60JmwBCTWOv4irUmLZlk LE5E1OjP+y94mgepZfMAljQvcqjPdI6nWPASwgLJdJRxTpsjJUHk2gnHOqtFiLdZfFPZ WDyZ+eiWaEL7B3uXVI7/X4BmzAphCyzzCBMd8tdoGW+NH/Yi9XyIZFcixqHHJ4ueBrDE KaXziEmh5dZc6LZ+JRDifgFKJzi2Q3f3NlZWjFpeSKm0hPhK8SsjZqk/OZwW1qNpTMvn +Lm6Rmbjidw5+1qGD1dLGWTqmFLzfDCROZOwU8JFyZfvPQvWUdqW73XHOtHU9J/HW3Og tSHg== X-Forwarded-Encrypted: i=1; AJvYcCXWwLVhxbyBfV4XJ2yPoTHVs8KYGa5aeCzqi+Ik/ASl/iwySWYLAq8WpfHd2f8LpH9/pDV1SElomZzNTo2E31EUHK692so5Oq5hhzOcmV5jDMxunHU= X-Gm-Message-State: AOJu0YyItwlGtj7W0sQ4J64muVvUbczKHv8WzrTkVz5HxYi0hY+TwO8m I/dt7CcZLEiOjpR55RX87Mdb4NcVzthgDajIbnp18HdJxSIPf6QRamjCow1dk5NnrGyUlTU5O2b a2eYJBA== X-Google-Smtp-Source: AGHT+IHT+bmwbpCCDDBGyKMSZDJyWfQuQtb+HSakU4o5bWugocQR0tn5FoTRKGbLNL6FlQgXTAEyTtQZuZbw X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:2e7d:d47a:a0c6:e3b1]) (user=irogers job=sendgmr) by 2002:a05:690c:4d8a:b0:64a:d1b0:4f24 with SMTP id 00721157ae682-658f06da930mr3078967b3.7.1720807983544; Fri, 12 Jul 2024 11:13:03 -0700 (PDT) Date: Fri, 12 Jul 2024 11:11:05 -0700 In-Reply-To: <20240712181108.475336-1-irogers@google.com> Message-Id: <20240712181108.475336-25-irogers@google.com> Mime-Version: 1.0 References: <20240712181108.475336-1-irogers@google.com> X-Mailer: git-send-email 2.45.2.993.g49e7a77208-goog Subject: [PATCH v5 24/27] 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-20240712_111304_752132_698C0320 X-CRM114-Status: GOOD ( 11.07 ) 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(+)