Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp266177imm; Fri, 3 Aug 2018 03:09:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdrhz4qxtF+J9/Lm5o/wW+qdoOA6upx1OlJ5qnfTcaSclgbomOPCTWfZhd4A4O7jc0rzBDX X-Received: by 2002:a63:1a20:: with SMTP id a32-v6mr3075130pga.446.1533290949535; Fri, 03 Aug 2018 03:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533290949; cv=none; d=google.com; s=arc-20160816; b=vG67SsCzkI6pOGvBSl4+zkCR3wYcaHnmp7gr3Q5aEhu+fPC42p1zPjv5yUeIXi73tc rXI9eaLwoffMBXgLpmSH8rG/7ZB6iImI1UzMGbIrIqB+8hJA5Xt+KTN0KwKkD5ehEYQe cE2s/+LR8kq9mw5Wz4fawKvC+7LdEfxUgtqKEpd+m0wlkNxXTu7aaQexUds1Zq4RoM5z 06JlAyZ1n3FS/ZHanICf/I91LcsQORylCTNHwq7XPvxdbqRUodMI7GbWIRyw+18XAywk F9dZ/jpOo9E58DXigJtQifQFHV8LcsxDUZqqH28GXk2AW6QeeVoQ5CR/OiaJUISM4xsY aDMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date :arc-authentication-results; bh=tVDPgpqfrTpcsJte+jECGgLayFY7fp+ZK8PBIMfhtPQ=; b=J3yOBsyBO8vsRt2wPm5IhFr7fNPNbjZW5Pn3ilMaO5P2ni+HljbXOJmRM/Ep1kZjlR n9SNiwvt65K2pS/dxwncXGODoxjSH1aMZv472OWR7n9cM1iXd3yOwSMK8/OqdDLfCUAo cwH0JOqW6RhPXcitXczAKDEMWdlfWWj5+0C34PDF8YR5jZJpHDtaSBfVgWKwiE1o281I Yy6lpnxKwEkGHIADS6yeHT5XEJug6S1iAJrHPTcrw0PwSYMfGGT+yZOyTli9tCiNBUJQ bhVNNizBZJgd08iqbQBAyt2kM8iyHDCU0V8vZVGahQ1YTMG34ac8+bjb81ka0zHA/+6v MSZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2-v6si3335484plp.233.2018.08.03.03.08.53; Fri, 03 Aug 2018 03:09:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732374AbeHCMDl (ORCPT + 99 others); Fri, 3 Aug 2018 08:03:41 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35680 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728450AbeHCMDk (ORCPT ); Fri, 3 Aug 2018 08:03:40 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w73A4Fb8031032 for ; Fri, 3 Aug 2018 06:08:04 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2kmmcu1g6j-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 03 Aug 2018 06:08:04 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 3 Aug 2018 11:08:02 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 3 Aug 2018 11:08:00 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w73A7xaQ19857528 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 3 Aug 2018 10:07:59 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1DF2052057; Fri, 3 Aug 2018 13:08:09 +0100 (BST) Received: from lynx.boeblingen.de.ibm.com (unknown [9.152.96.226]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id 09BA45204E; Fri, 3 Aug 2018 13:08:09 +0100 (BST) Received: from brueckh by lynx.boeblingen.de.ibm.com with local (Exim 4.90_1) (envelope-from ) id 1flX02-000869-SW; Fri, 03 Aug 2018 12:07:58 +0200 Date: Fri, 3 Aug 2018 12:07:58 +0200 From: Hendrik Brueckner To: Arnaldo Carvalho de Melo Cc: Thomas Richter , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, brueckner@linux.vnet.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com Subject: Re: [PATCH 1/3] perf auxtrace: Support for perf report -D for s390 References: <20180802074622.13641-1-tmricht@linux.ibm.com> <20180802074622.13641-2-tmricht@linux.ibm.com> <20180802124909.GB7996@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180802124909.GB7996@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18080310-0008-0000-0000-0000025C4440 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18080310-0009-0000-0000-000021C2E7FE Message-Id: <20180803100758.GA28475@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-08-03_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1808030112 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnaldo, On Thu, Aug 02, 2018 at 09:49:09AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Aug 02, 2018 at 09:46:20AM +0200, Thomas Richter escreveu: > > Add initial support for s390 auxiliary traces using the > > CPU-Measurement Sampling Facility. > > Could you please provide one or two paragraphs explaining what is this > "CPU-Measurement Sampling Facility", in which hardware this is available > (all s/390 hardware has it? Just the 64-bit model(s)?) and provide a > public URL for people interested in further reading? The CPU-Measurement Facility (CPU-MF) provides a set of functions to obtain performance information on the mainframe. Basically, it was introduced with System z10 years ago for the z/Architecture, that means, 64-bit. For Linux, there are two facilities of interest, counter facility and sampling facility. The counter facility provides hardware counters for instructions, cycles, crypto-activities, and many more. The sampling facility is a hardware sampler that when started will write samples at a particular interval into a sampling buffer. At some point, for example, if a sample block is full, it generates an interrupt to collect samples (while the sampler continues to run). Few years ago, I started to provide the a perf PMU to use the counter and sampling facilities. Recently, the device driver was updated to also "export" the sampling buffer into the AUX area. Thomas now completed the related perf work to interpret and process these AUX data. If people are more interested in the sampling facility, they can have a look into: - The Load-Program-Parameter and the CPU-Measurement Facilities, SA23-2260-05 http://www-01.ibm.com/support/docview.wss?uid=isg26fcd1cc32246f4c8852574ce0044734a and to learn how-to use it for Linux on Z, have look at chapter 54, "Using the CPU-measurement facilities" in the: - Device Drivers, Features, and Commands, SC33-8411-34 http://public.dhe.ibm.com/software/dw/linux390/docu/l416dd34.pdf Thanks and kind regards, Hendrik