Message ID | 20240718010023.1495687-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 090EBC3DA60 for <linux-arm-kernel@archiver.kernel.org>; Thu, 18 Jul 2024 01:08:42 +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=REzOwcnCQMi8P53oskFE/aACHZkwc/UlMI8wZ8Kriac=; b=R0OyCex7Ka50IFD70AM0VQWEt0 YkQ+zDgbbEIRyE1v5mqcDuauqJljIC8YlSfmD+swOVx5lEFDyemUJgrsyGQOjH5trFqS3rNKYKrgv ZTjfsPL0CFj8pXGxnpdA7O2jmi/DGQqWE0KRtlJ3zA9poN6WcRHvHQt1+xlsAM7HJgduzKUBfHQMZ 5sXrwQnfwZ7WiEcrwBtVRUGwgnYfv1jIHdRY7hD17gLfn7kE4sdHCAKg/VP1wFcs5hsidTnKHTJuj 1S5WCVLDt1Y2k24lBEmrUNr0gPOzQ0sXDTjMtG39A+3/0xx9ejS+e8PjYvYSMTt+ROf6J1TnUII0A fBMOqM/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUFdF-0000000FMVG-1svW; Thu, 18 Jul 2024 01:08:29 +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 1sUFWX-0000000FJrN-1118 for linux-arm-kernel@lists.infradead.org; Thu, 18 Jul 2024 01:01:34 +0000 Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-65eb8845bc6so6978647b3.3 for <linux-arm-kernel@lists.infradead.org>; Wed, 17 Jul 2024 18:01:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1721264492; x=1721869292; 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=REzOwcnCQMi8P53oskFE/aACHZkwc/UlMI8wZ8Kriac=; b=mIrH4maJhiQF9/BgyZS2y4pzb9vC/nb/0EQr8sl6rZMjEB5IiuTmwbZXbuM5FuSAZA hZpu1IJC/48UhZ/HHHdFyEbJC2OpHW0HN5+wRmEUY3AG98rl3NsEE9+UuMeyHn0Vhvg3 lQigx10nfBl9hWfDCKvuggmejnE5A+gWm/cjtNq7EpYp14eB3AqWbNxJgmkLfVKxk3rp WDWhqWWkl9rk7ZeW0ol4is9lUqih//yC9WpATgN71N5WIHGyNIxE+apEFAtbx5IwPi5V niM0WPxF0040lhHjmw5SSIfu9mGzx/72bs9YXlOd+ahbW4ZRywwTUvjQBw7iPYFaoZzc FErQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721264492; x=1721869292; 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=REzOwcnCQMi8P53oskFE/aACHZkwc/UlMI8wZ8Kriac=; b=eeeXd3CVH9oK/gYd+WqQIZfG93xEsL3m/C8JZXYSJULMlNNcFrFtVbIj8ZfOhpQAls oYAGVWVcKb3+U4Y4b5C0frXgoG01TL5nI8b6jv3mdDThn9in0smgChjhM39Cyixz8loY EvneWb052OdfIFVJlyEVzI/uThvLFA8JpSYsetnJU+wrB2hiuevyXintVcQjgvKagVD6 ARVIeoSIjz0eB99K5+yKbuCR5ocBh0HwW0Ytp2y6LEr/4CH2OrOBiKvvwc5sMNgCXSKy sBMzjybZB/Jv6JHybRKwqaMZNWLvMyXqlnwHoxwQ5z0RPyZWJyGA2pairOs3LCq9CFPB wR4Q== X-Forwarded-Encrypted: i=1; AJvYcCVr20LIVT+W77FxqsLQnZQQEIeatDAz0uRbium951atzNT7Np7rwYZxoGBXL/PwZwvfu6saNY+auTtKHmUb1bFTNvTX4lpqQNmnMEf+Wc7XQ6MWadE= X-Gm-Message-State: AOJu0YxJ5pU3xki88Tnqj+OpEYwAfRTVek+lO6ZGh9LQbk50j955SVG8 xL79i6bfkwVxTQKkBbZ48QchswnXPxcLUWzXXtgDYtYqcuc1x7tOjN+OMZZHSo4QZ/mzfu3izzE Jn3nAZA== X-Google-Smtp-Source: AGHT+IENJRTJFBxLEruydNwMFvGZtwUd9yw7NYoBiIOr6hcXSjFkwsbhRtb36vAKwTB1IMSXwJ8aHdyUAnC0 X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:940b:9044:fa83:4060]) (user=irogers job=sendgmr) by 2002:a25:a2c4:0:b0:e03:39fb:5729 with SMTP id 3f1490d57ef6-e05fedaf378mr2117276.10.1721264491944; Wed, 17 Jul 2024 18:01:31 -0700 (PDT) Date: Wed, 17 Jul 2024 18:00:20 -0700 In-Reply-To: <20240718010023.1495687-1-irogers@google.com> Message-Id: <20240718010023.1495687-25-irogers@google.com> Mime-Version: 1.0 References: <20240718010023.1495687-1-irogers@google.com> X-Mailer: git-send-email 2.45.2.1089.g2a221341d9-goog Subject: [PATCH v6 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-20240717_180133_340000_6172EA52 X-CRM114-Status: GOOD ( 10.12 ) 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",