Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp475534imm; Fri, 3 Aug 2018 06:34:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeHQQlUX3u1hhngIhkeEF6KAlZ6eShSTvMPTAgxflVTtyYFjtqstMGJTpi0PT0/UmrBMlVf X-Received: by 2002:a63:fd52:: with SMTP id m18-v6mr3877000pgj.304.1533303297620; Fri, 03 Aug 2018 06:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533303297; cv=none; d=google.com; s=arc-20160816; b=gBnpivMzby8zsUGEp1KzYaev2KXKCaFkZPFh0kdrl0Iw1cDoJxjWSSS6X+khWYTCBX 2/eTds/2LPByZEzkGh2elakK5TT05RBPymCeGRplM6OlFMxX64hwo6sOl1MMgZaBCZoY 8N9RsJWa+2DG9veu3SlEqDvZOeOPdVcNVCR2F5Hhnoc+GKLqPWq69lS6IP0QCAbaHnGx 7uTpnMrW65Z9j5N+EUqLtXZnqQUEqIStyut6bPNzqVzDdF4m8jllWYv3LdOEhwbmcyxf 8WVoJPi3xUFNha4I3v5Ysn1zNSWN2zmPp/wtdxF1IcvURWNOOpn78p9n5RFQ68bIaj9k j8lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=zOjzxZiOzGD4WHi6//zE82adtn4/8Cxs61mppYzgSrY=; b=TyXHCX+6BuzCMDYIVYgyiU8oDSiUFiOVFU24pMxmHeaflWXvyk0YgZ5aRBHazkyxgM o5yGweDbE2bu2HTK9sMJ7RLLLMkQRCvyUTsRJpGFBnvrXyJEtAoNPzspeR/+buJLuVCW 9ZYI4rbobng7SjuGWbRPuaCpCDp/tklVDJEpm3Jqocj7c2SwBCEAES8Qd8xeCY0Rnj/H 5VLd58ogghOzSgQlZyZ6Wqqyct7bcuxVWFNBwUCCC98EOqS3jD1o8KjJckdmGY1Tc+A2 7VJw+mbH3oyywjwZZm9wqq73Awzpq75xHGcHaj25ZWXBvMThX83yEyf++knXgnCB4XZC XIAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="IV0Iev/Z"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2-v6si3546982plp.276.2018.08.03.06.34.42; Fri, 03 Aug 2018 06:34:57 -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; dkim=pass header.i=@kernel.org header.s=default header.b="IV0Iev/Z"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731990AbeHCP3Z (ORCPT + 99 others); Fri, 3 Aug 2018 11:29:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:42714 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728758AbeHCP3Z (ORCPT ); Fri, 3 Aug 2018 11:29:25 -0400 Received: from jouet.infradead.org (unknown [186.208.79.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F23512175D; Fri, 3 Aug 2018 13:33:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533303182; bh=Y22UxhHswyuxWH2fD+DUOM2O/RHz7KWbRJjXabSSSrE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IV0Iev/ZFSWmNvGoyYyt3t0s6ED5JTwT5m1wcCF4GUtiBDjlxiWt3fne4jqqyD2Zf U3Ja95k/qFzXbM2sAGqc++BH5dT4X3AZCClnJiZ9o0TWWfHZAzgrq27CxSoD0Rdple RWJiDOF/PZzHqeR8KM2MZH9Jf8ET7vFrxJoY1b5g= Received: by jouet.infradead.org (Postfix, from userid 1000) id 52B5C140A1C; Fri, 3 Aug 2018 10:32:52 -0300 (-03) Date: Fri, 3 Aug 2018 10:32:52 -0300 From: Arnaldo Carvalho de Melo To: Hendrik Brueckner 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 Message-ID: <20180803133252.GE7996@kernel.org> References: <20180802074622.13641-1-tmricht@linux.ibm.com> <20180802074622.13641-2-tmricht@linux.ibm.com> <20180802124909.GB7996@kernel.org> <20180803100758.GA28475@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180803100758.GA28475@linux.ibm.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Aug 03, 2018 at 12:07:58PM +0200, Hendrik Brueckner escreveu: > 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 a lot, I added this to the first commit, people investigating this should be able to find that when doing research about the implementation details. - Arnaldo