Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp60099rdb; Fri, 26 Jan 2024 19:02:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3/pZQUKVPlEgxu3oGWdcbuSu9TwwCBCKgcy3ZO1gWmCcLNdwmPhHAN5hpwb0ZEyxyK6Oo X-Received: by 2002:aa7:d993:0:b0:559:6574:8c80 with SMTP id u19-20020aa7d993000000b0055965748c80mr404308eds.14.1706324571240; Fri, 26 Jan 2024 19:02:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706324571; cv=pass; d=google.com; s=arc-20160816; b=OqOXSnhoW7ZudX/4L2k9TIsnBSt3Pc64wuudlR0Cbd3vSubEGJd1AkuVIttpocV5zD OnckEYSMF8B/WfryeSyQfJjCpin2Qou3y4wmBssr12KMxTLwXJZ25BW+X8f2mWRXwgVI RqWz7ChJuSP2j8IXkZeJiX2smZrdtFEDJWGUaCuLgtnZ+Fmn/Xu5iCfDAjtB58fZ9bKK 6wkPnIx+PqMK+oSd+GFTsCjHk197HAlboo/bKektRKgaShNbk98aUYarMCvUz8jML7km YkzIMnuMIEHEeOUCplcyF5EMomHLdW9BkmMRvufRwGdx2On/mjKL16Z8QnTsW4DmHAR9 q+2A== 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:message-id:date:subject:cc:to :from; bh=XxfHV0+N48Dke/lmqlAXxjLc/+OYZTd+UFrIxsJf2qE=; fh=Bniw+6GSTGRfFyC55GB3Thz1GNqaKHZWIdADbDjMDXE=; b=BMQ1UBTiXZY/JvGnLWlR033n5CBx/dINF+kjRH9jSHBlraCgnPJodlnI07tm2OjHwp 3xuRTz5diviwV4VCLT0WeAAbSA3AJjDo6OukR/bryAgTr+4h9W8PfpHJPT+kecGKB5cj pJsjVr0sOlfF/YK+hwk7ad8474WaW6lPOdQym6CkxuwPJIpcdR6dFRgCaYuBzu4+cG0F TvtT30saqokevU6nFmwh6B3zUMwMhTgYEnpt26NBUPomTCKo4Z1onK9JGtFXaAFnddNg ycPJhpeMh4W92rhQV4usmb80U9UvuHmKh2ose4TsKpQLM8+LrgzgAZrO+EmqC3hqFyBP AMAQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-41031-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41031-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ck27-20020a0564021c1b00b0055cece62afbsi1209140edb.361.2024.01.26.19.02.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 19:02:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41031-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-41031-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41031-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com 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 DC5311F23A29 for ; Sat, 27 Jan 2024 03:02:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9EEBEBE7F; Sat, 27 Jan 2024 03:02:43 +0000 (UTC) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (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 7BC76BA2B; Sat, 27 Jan 2024 03:02:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706324563; cv=none; b=I3TLSvAwsaIIAO8jhdATWFUhUmKD+Z7IL6vHGRjk4tJjqm5cAKI89n1XJ3P/Q0SgybYSG42gKQvdzoxaa0uIYnImp5cjI0cQOeghPMhTU6XzoY9x6Ey+YL0Sujp4aDlv5JIWpmn1zPVjaTLWji9y+9nSmYh5t9bMo9nhWp+YBKA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706324563; c=relaxed/simple; bh=cxcqoOkkMX0SfjL+gJhhX+vXkdzYwwz4tm4/8tFtwwQ=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=WpGa/n3M1poxI+BRz6o5LJzlhhKcMt52Iooq76JU9yQr7G14eWkmlt23V7KfyzTjjqeguxjQGRyEuljI5cZjwLhdzLyaTucxczA94GG/a4CF0xstyj4iVWZLRYPkZnyyZ6YUa+rUdcXGTjCphFRJX29ufTfgaryDWu5gzqKG6PU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4TMK7y5bX2zvVNk; Sat, 27 Jan 2024 11:01:02 +0800 (CST) Received: from kwepemm600003.china.huawei.com (unknown [7.193.23.202]) by mail.maildlp.com (Postfix) with ESMTPS id DA5F11404FC; Sat, 27 Jan 2024 11:02:37 +0800 (CST) Received: from ubuntu2204.huawei.com (10.67.174.22) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sat, 27 Jan 2024 11:02:37 +0800 From: Yang Jihong To: , , , , , , , , , , CC: Subject: [PATCH] perf evsel: Fix duplicate initialization of data->id in evsel__parse_sample() Date: Sat, 27 Jan 2024 02:57:56 +0000 Message-ID: <20240127025756.4041808-1-yangjihong1@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600003.china.huawei.com (7.193.23.202) data->id has been initialized at line 2362, remove duplicate initialization. Fixes: 3ad31d8a0df2 ("perf evsel: Centralize perf_sample initialization") Signed-off-by: Yang Jihong --- 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 4d14f14f2506..a0f36a6b8a2d 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.34.1