Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2386068lqp; Sun, 24 Mar 2024 17:07:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuEJAKZvfqosSMMbvSHVjB7cncvrIXfpBPMW7/6lxqvxrp1rzY4ce7jgVYwP7i6OJ2pyFE1pqDjl2kOpl/4YipU5WcK7lMgQwijZnLWQ== X-Google-Smtp-Source: AGHT+IHXPUChCMWu1a1uFm+2HGLk/FShM8HDSsK0dd90fclFr7xLGZR/vMW3e3F72mVu9v5q8FeS X-Received: by 2002:a17:906:a857:b0:a4a:3ca4:e187 with SMTP id dx23-20020a170906a85700b00a4a3ca4e187mr9077ejb.38.1711325247984; Sun, 24 Mar 2024 17:07:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711325247; cv=pass; d=google.com; s=arc-20160816; b=m3+1otJCtP1+2jAI2isGkOnmz5LTbN/WUk1aHfP0VDBwZ9tAmHYpwHFhwt0W8gXNIG uh1GaOHFHRRzvIsLajskaCVDo3Le5xAmK/+DqvmU43CWO7EfjQIyyhEbbmU+vFWbSmgp 0JIJCZZz2b6qJZgPoFZm3ztC7sSqbC3okVvCHRhyluMQ/ifri4lC5EMggrZxB1asnpzI os1kLdCht1ivuolDOrjcEsmrFRDIUNCxS50ANeLmHseqwf55lPXacU5diB5iftC4rGOs VUptfKQChqK6i6NLCuo+xJZQWn1nI6m9c98G/jxJ2lj4czitDicGndSVPrk6F6PirCNV 7zpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xesukU0/s3XhuaVwxD1t5vy/yOJXvRws7tgJlGhsXvA=; fh=usJ3xLYhd/SeAGG2BxBE7aqDb/8g5H/e+7bsrGDXp9M=; b=h/2P7FS3zN2DQ7OcDGaeYiOqwrUjwcmdS+J++zlWNsIwXHd2Ye6xy48KrL1RRrj+h+ wIc8tII4d9oSpoglhIooo2xGZuCdX110EU+CV14RFmREq/9uFhlYd+LDww5Y7QDK+8I5 VfqQdQwurr/H8sJ3ZmDP8WbvICy5KdpAycKVVpKarS74uRGexONQgHG9kNcWiVd5CPPZ DTC4Dt4+XHu0R/FXRn9W5VviEUR1i1vgXxOrfWcBPOGCLx44EAuoZVlIWZenR4rZwhMm KRGefmS+k9R06c4BEcTRGZUoek3QmrupaHeQh60A6U+MF8oXy8m9hXh8aRt46GEZJQjx UNxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OOUY25by; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113281-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dx2-20020a170906a84200b00a471c15c9d6si1914241ejb.127.2024.03.24.17.07.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:07:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113281-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OOUY25by; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113281-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B8EF31F252FA for ; Mon, 25 Mar 2024 00:00:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 961DC18C9E6; Sun, 24 Mar 2024 22:41:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OOUY25by" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7A1C18C9CA; Sun, 24 Mar 2024 22:41:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320081; cv=none; b=ViIz8Xg5ArxbTF3NAJHBUABYGNPedELGHYULlH8DKnUg8M7z4tpQGS2q8zt1r0S5JiFgmI3x/4wiBj6l0VMff9ZVuL9M/aHBl6tWC1NNqH/7/4ZKEYaeIkeLieGc6y6kBL4sSNLaVfhL4fmtrq+XDpQKq+HFIrxlAxDTFe6dqPQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320081; c=relaxed/simple; bh=PoyZnFczcwt9O6M6VXmc7lHJigt0cR0l+Qp9md3dErc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kqNGUmn78g4I2cg80unTIqHv7LJJOJk1g82q/YpDd88cxPLa0z4eGGBub7k54Me3jnGCw+9Hdw79pDgOKef52Q7Z4A6f8BJQtiGDeltQaDCg+AJQQBqzfoG1X64X5o6j6J0AqI++H3XwN/XhNupNXEjIGwgaUvsQhCVuU6k5Ax8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OOUY25by; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B56BCC43390; Sun, 24 Mar 2024 22:41:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320081; bh=PoyZnFczcwt9O6M6VXmc7lHJigt0cR0l+Qp9md3dErc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OOUY25by674rOdH3uLeGdijZkulZd09uNyGF+ARvsKI+3Kc9AxQhKuJ6JJHrHNI58 GoxnItkG7r6Z7hjyZK67eQFUgzsurV76V3SqNMU/qgLLkB0sTeOpGEl1v2jD7nyEVM mR1wZo9cYsAQpEdkAyWhWtIpdpe03sYmUYO5109hlyEhbWDahCL9VcHnnAS2EerLM1 tnEbMRMcSW9DjDYo8/jnqCf6Bq7VFmrXfsZ4aiOfncw2T9t8aDbtiBmClEurl0Jq2T YXWZZA26Q4klQ0mMXmX7YVN+uEfawksUfaQjqgE5/K+OZZFhQ+tfOnxM+arUWU+dCp 9+UUljAIx/zJQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Yang Jihong , Arnaldo Carvalho de Melo , Ian Rogers , Namhyung Kim , Sasha Levin Subject: [PATCH 6.8 390/715] perf evsel: Fix duplicate initialization of data->id in evsel__parse_sample() Date: Sun, 24 Mar 2024 18:29:29 -0400 Message-ID: <20240324223455.1342824-391-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Yang Jihong [ Upstream commit 4962aec0d684c8edb14574ccd0da53e4926ff834 ] data->id has been initialized at line 2362, remove duplicate initialization. Fixes: 3ad31d8a0df2 ("perf evsel: Centralize perf_sample initialization") Signed-off-by: Yang Jihong Reviewed-by: Arnaldo Carvalho de Melo Reviewed-by: Ian Rogers Signed-off-by: Namhyung Kim Link: https://lore.kernel.org/r/20240127025756.4041808-1-yangjihong1@huawei.com Signed-off-by: Sasha Levin --- tools/perf/util/evsel.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 6d7c9c58a9bcb..727dae445da9f 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -2363,7 +2363,6 @@ int evsel__parse_sample(struct evsel *evsel, union perf_event *event, data->period = evsel->core.attr.sample_period; data->cpumode = event->header.misc & PERF_RECORD_MISC_CPUMODE_MASK; data->misc = event->header.misc; - data->id = -1ULL; data->data_src = PERF_MEM_DATA_SRC_NONE; data->vcpu = -1; -- 2.43.0