Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1020837rdb; Tue, 30 Jan 2024 05:56:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5lJxWKN495JvsPDepf4+ldAbrr0eGkxIor/lBGcJlKMfTAu01nuNW24MzDKKQ136oDF8W X-Received: by 2002:a17:906:a042:b0:a27:7de8:9cd9 with SMTP id bg2-20020a170906a04200b00a277de89cd9mr6174620ejb.23.1706622993092; Tue, 30 Jan 2024 05:56:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706622993; cv=pass; d=google.com; s=arc-20160816; b=JcC3QsJrRZRpZWOOb9mZWHi5tfBIh2b6ruhwGJ4s/qfzx3K4sIaPyOnmUnETD5OrJA e/LFDw7OkZdjcvDC8C4j7sSdWo3+OSi+CLph19r+/xCB8KqRoEoSkupisC9BWC7ctgAi mmBtECljiOWFY46BqxW0YcQv9UKtKcNMLBj/J5/TAL/8tETYYBRQOJsBwtYDBu1rzH00 TPGMWNazmWT/R81gcN6+jkZnJnEIvkYIS3vADl+ruKa14fxiDDWVf3AMDsLH115LhD90 DZvT3AB6ET86aqCOnUz12d0nXDDLfSvU/ZnYxnjYBfiHG8Hgso9k4OWqAhpEXUMhCx9J zYjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BSCveGznw56Atl15ZIjYLneyKTqlxpc3ttzlfAC3UP8=; fh=vEwfyu64y4sAmSudt5BN0PfXYak69YhcBp2iA9tkDv0=; b=sis7aAe6TXOz8UGobHQeOiTgDkrJG7gnBKRTMQMtN3rGYosqTQTY8V3KXxCBIPabUK H59/HfXwImVtR/dLF4g15BbAsSvbkQHQ296EN/3A2Ta17K32ldAnNdFEXatgvHXCo9Qa JNIPj5MD2oDmdKeVWPnTjZ4j1hKTmXgacfY5PmEbjKr06GzmwikjMx0argL/SvK9ez5V UAqLyH+JluE/1bObwK/kN1qyhvLFR3CerxOQqYHxCNmJHtRkGgb4WtFzUyPK7IoWKPu2 6YTZpeZAjO9N9cgBvNgDwGx1CRqV+pL5iLbyTVunXA0vWcyOGu2fOUIPjxGHG2cJYJlq dt7g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V7hZ76Vk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44722-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id by18-20020a170906a2d200b00a35d6f574b3si1574983ejb.796.2024.01.30.05.56.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 05:56:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44722-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V7hZ76Vk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-44722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44722-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 28AB11F2107E for ; Tue, 30 Jan 2024 13:56:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1C3D6D1CF; Tue, 30 Jan 2024 13:56:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="V7hZ76Vk" 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 C4AFE6D1B1; Tue, 30 Jan 2024 13:56:03 +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=1706622963; cv=none; b=OqqpW28sy++GOEiS11UaMlyU4pPE2QGFNy8VOf4EBAl/mz5HHZ257gIvEX22hEQlytnLZmbVmaZPb2AqnpS8O8E/o2Zjw850qAm0IBQxxSLdtII/WZE0xlnoeGbJyA9VYNWk42WAPMoKVWs0ylwT23vdtiGRgb2I5xiXGJJBFWY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706622963; c=relaxed/simple; bh=6kOSaJfqPSlJRouPhGEV8c/CvXVYQ46pRD4QgFVwYZQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RQYGExTfZfU+6qYSRZzu21tAbbmWh63iCIpzM33q51QghetSP3jASGSW6dYAunNEeWl9EWOW3LRZPZdL5Dv0ZVBIzXsfLL56gqha/txYpkMsmeaHHzLu2B5LTcG0bgwkfZK3CypfXHycofuxoMKd2JLpTSe0UKHnJrzrpxqANr0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=V7hZ76Vk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C33BC43394; Tue, 30 Jan 2024 13:56:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706622963; bh=6kOSaJfqPSlJRouPhGEV8c/CvXVYQ46pRD4QgFVwYZQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V7hZ76Vk1Em6icF9OhasDsoYYK0WkRj27XOXCvffrY+h0S43BNXsnVZHHr8QPcJLe VCpq5YoIKKVUFVOk+H+A6YsGej/kVNfOeuYD733hXkemmB0PwUHGM4bTCCzxfDB/2d 5RKfiw0zKLq6/Wd40VX36BOS2U3fQewkQcgFL29/YcSptsW3MGY/ggN4M6YakTgzqD buryrKgyDY40/8Qgd3hnVkNFEk6/BMN7PU71pG24DTEHlf2TptqY21xaLSRf32b9ii aq7VnBh3ehIwHnzigdXKleeopI2C2qdL3IlzQ1OL9KLogpqyO0e5ETVJF1bkG9VbLR qMXEWfPsFtt5g== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 4E31940441; Tue, 30 Jan 2024 10:56:00 -0300 (-03) Date: Tue, 30 Jan 2024 10:56:00 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Kan Liang , Adrian Hunter , Jiri Olsa , Namhyung Kim , linux-perf-users@vger.kernel.org, Linux Kernel Mailing List Subject: Re: perf test hybrid failing on 14700K Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com Em Fri, Jan 19, 2024 at 10:09:10PM -0800, Ian Rogers escreveu: > On Sat, Dec 23, 2023 at 5:55 AM Arnaldo Carvalho de Melo > wrote: > > > > Hi Kan, > > > > I noticed the following problem, are you able to reproduce it? > > > > Happy solstice! > > > > - Arnaldo > > Hi Arnaldo, > > I'm seeing a test failure on Alderlake in perf-tools-next and wondered > if it was on your radar: > ``` > 32: Session topology : > --- start --- > test child forked, pid 539222 > templ file: /tmp/perf-test-HMet21 > Using CPUID GenuineIntel-6-97-2 > ------------------------------------------------------------ > perf_event_attr: > type 0 (PERF_TYPE_HARDWARE) > config 0x800000000 > disabled 1 > ------------------------------------------------------------ > sys_perf_event_open: pid 0 cpu -1 group_fd -1 flags 0x8 = 4 > ------------------------------------------------------------ > perf_event_attr: > type 0 (PERF_TYPE_HARDWARE) > config 0x400000000 > disabled 1 > ------------------------------------------------------------ > sys_perf_event_open: pid 0 cpu -1 group_fd -1 flags 0x8 = 5 > non matching sample_type > FAILED tests/topology.c:73 can't get session > test child finished with -1 > ---- end ---- > Session topology: FAILED! > ``` > > The code is hitting this line in evlist__valid_sample_type as > core.nr_entries is 2 on hybrid not 1: > https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/tree/tools/perf/util/evlist.c?h=perf-tools-next#n1215 > this causes perf_session__open to fail: > https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/tree/tools/perf/util/session.c?h=perf-tools-next#n129 Yes, I see this as well, haven't yet analysed it root@number:~# perf test -v topology 38: Session topology : --- start --- test child forked, pid 260120 templ file: /tmp/perf-test-WMa4M5 Using CPUID GenuineIntel-6-B7-1 non matching sample_type FAILED tests/topology.c:73 can't get session test child finished with -1 ---- end ---- Session topology: FAILED! root@number:~#