Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp218540rdb; Thu, 8 Feb 2024 04:11:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVgvMCFzxxcrKBMDjrSQVebTRqoF3xOIHqjgJMgrYutllyQgGEzNve0KejsliSjiRFREIgtY4fMauidHCEppbS2dYOCRqkvsG3cd7IfiA== X-Google-Smtp-Source: AGHT+IGopyLxVkWXTXj5rkaJ3SaIuDz2WMfnzbkF5xvTHZlk9MUb0TGCMx/4ul+CL8BqWFBzEWhE X-Received: by 2002:a05:6870:390e:b0:219:1d3d:5466 with SMTP id b14-20020a056870390e00b002191d3d5466mr9350814oap.11.1707394302595; Thu, 08 Feb 2024 04:11:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707394302; cv=pass; d=google.com; s=arc-20160816; b=l9MHqCLJ5+UEamdkoIhya2Y2qyq5IeqrxHb0ZT1JtiuNI2VjXHK8sZi/eXntvwRKPN lv8MZAxJMw9PQyYlXJJcpprCRuC9hYplr03Ahj2yuifQN+liA0qu2eKpHydRrRYIZ0Lj 929PCtBTqwecNu/7vqmC25pcVDPSui7F0JN0hEKRi8HExn0aO64pKEd5MhKsbQ2j6bBn 1/pPMyBbDmHEKZeP/aBfod+LclHtcs5B2WilO1pwDRLliZnnU/SgmQzjKQy+/kNajw4r 9Noauz2JjapmbbN9ZoPQSBByvrDsWicx2sT2Di6XVLLSUz2NRx6tvT+dIz7j61wzLgkV C6hQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:organization:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=AnW8r9TRGwiz7GDwEU67jpl3RUV2w6EGZX/z7qRiS4E=; fh=qdP8P8pOzEHeVjUcKEBwFkCx/11RWBQMZcqTcQ2RlQw=; b=HfjrvES7U+2WAf+//mIj7ELFF4QOxPMRKCe2AOeDMAy2yXkOubz5bfuTs6RS3/fTOP LNHEqxRAjQKxQsGHGUfy+pQnfAz2tcyT+vEEL3/br06iczj3TZrZO2XnxEUlcxcPnu5R pqRtehra1xONn03UzzpbDcx0wkX9ctWBb3G4vl9vYH5NG5CMsx9mGNZP9o0JnUoX3Bro 9pGWTnAhQEwyc4vTOzDo5mxwTVrwL3lijyvHFNqoxHBASMAX/2dsRZG7jzR1gIHw95JC hJTZnXFF2AM9bpI6cxnnY9lVDm3nEPTpTO4wMACTmfrAgZKDFzWmFTNDUUnxToO1NTQH ZT/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mChSWcZR; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-57965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57965-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCVHKQ3rdUPWebYd8GRI36PAOQ71ObGdh4UOQV9ZElHO4mgQ3uHU6K2eAWcsOJ4B4/kmlwXMDrsvHuL6E3tAF4cmHGFyPr2Z1A7m5HehnA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l26-20020a63ba5a000000b005d9b49b7ad6si3848438pgu.775.2024.02.08.04.11.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:11:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mChSWcZR; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-57965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57965-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 71387B276B2 for ; Thu, 8 Feb 2024 11:33:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94E2F76046; Thu, 8 Feb 2024 11:32:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mChSWcZR" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 1EC7C76037; Thu, 8 Feb 2024 11:32:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707391935; cv=none; b=UA6jVeYfpfGk9DhwHc6N08F/jfBxkUi9LZkWXpTdpPhl/+YSbgjldK8fGFFCkZ+DLVImGIfA4BzavXhbpdkSLZWAXTQozwDFdG/cKYHQkR3A1CgFE/EUzvxcwf86HN8ucLltyfzjeJ93KmtS5V1cU0v3i0mx2h0olfH89Mrb0j0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707391935; c=relaxed/simple; bh=/uNuO1osfQ/KqtLrzS800xAbLzNCQEyTMRkrAuppesM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gdzduZy3CV2GkM/I3rNXet/AFbP7KSw5TTmyiPKKUGG/pd9m/tkhBqwQOHCJy5t0fbAyr5oiDXbWWUqXUPYTsk1tQHoqEQ/2zaOA1XiLD+rEsTszFJnLS2pVMY/ldyncKP53EFuzyYFNihX8Qbfzq4VTiWvIPG6u5vssb2M1oZY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=mChSWcZR; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707391934; x=1738927934; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/uNuO1osfQ/KqtLrzS800xAbLzNCQEyTMRkrAuppesM=; b=mChSWcZR4jRIH6JuZiyZhMyf6D3l9gXnwyUGtufWBArJ2YRJopCQVas/ Lp4IuYexIOwu/Lo0gGEJ7/lRU4Ig7LTZcZmxz2eoBRzUTPHhUmHN/9VbH nQY6OAzbDTj1B9L4XiywVWOR9LyCwRF9ghQW5zqxMi3Rb3rLFTRDBozRS ZBHiEe1JDy80XQnotqJbHAdsMUJYifl0uZxMVL64lvkHxv/b76/lW/HRB PUcWqGpmfrAREDqntNAO2eH9Pk18EIKVvTqdZHcxvUjJDvwY4vtENYWbq o6V5UEMXMNVddHDosSYriH2CUExSk0SRw4wh2dO34HUx7+vFakoyassrG Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10977"; a="1345594" X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1345594" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 03:32:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1957534" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO ahunter-VirtualBox.home\044ger.corp.intel.com) ([10.251.219.88]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 03:32:08 -0800 From: Adrian Hunter To: Peter Zijlstra Cc: Ingo Molnar , Mark Rutland , Alexander Shishkin , Heiko Carstens , Thomas Richter , Hendrik Brueckner , Suzuki K Poulose , Mike Leach , James Clark , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, Yicong Yang , Jonathan Cameron , Will Deacon , Arnaldo Carvalho de Melo , Jiri Olsa , Namhyung Kim , Ian Rogers , Andi Kleen , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH V5 05/12] perf tools: Enable evsel__is_aux_event() to work for S390_CPUMSF Date: Thu, 8 Feb 2024 13:31:20 +0200 Message-Id: <20240208113127.22216-6-adrian.hunter@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240208113127.22216-1-adrian.hunter@intel.com> References: <20240208113127.22216-1-adrian.hunter@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Content-Transfer-Encoding: 8bit evsel__is_aux_event() identifies AUX area tracing selected events. S390_CPUMSF uses a raw event type (PERF_TYPE_RAW - refer s390_cpumsf_evsel_is_auxtrace()) not a PMU type value that could be checked in evsel__is_aux_event(). However it sets needs_auxtrace_mmap (refer auxtrace_record__init()), so check that first. Currently, the features that use evsel__is_aux_event() are used only by Intel PT, but that may change in the future. Signed-off-by: Adrian Hunter Acked-by: Ian Rogers --- tools/perf/util/pmu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 437386dedd5c..40be43f1f648 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c @@ -1099,8 +1099,12 @@ void perf_pmu__warn_invalid_formats(struct perf_pmu *pmu) bool evsel__is_aux_event(const struct evsel *evsel) { - struct perf_pmu *pmu = evsel__find_pmu(evsel); + struct perf_pmu *pmu; + + if (evsel->needs_auxtrace_mmap) + return true; + pmu = evsel__find_pmu(evsel); return pmu && pmu->auxtrace; } -- 2.34.1