Received: by 10.223.185.116 with SMTP id b49csp7811793wrg; Thu, 1 Mar 2018 11:31:17 -0800 (PST) X-Google-Smtp-Source: AG47ELt1NkEtgJ0ESXGivI5yjCvmebaqVGdp+F7k1kqvMuU1iTnld6jcsEIsVCFcHXDzqSaeejej X-Received: by 10.99.96.145 with SMTP id u139mr2437527pgb.110.1519932677654; Thu, 01 Mar 2018 11:31:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519932677; cv=none; d=google.com; s=arc-20160816; b=0ysvcGhEAjVtuxBHgtihiq0s5DCQZkIkK2WLze9UEEel8tkxH2W+rNbzeckrCkt4lj kA/I+DDPcsIJElwXULb314H6/MspI1vwZ/qTsu/lxDN7JRvPFxit2+iciJYts1anbm6f dmtca8Xm4iA2LAwlOO+ptijFrQEg7lmXRQBNklatSh/0iREsxtVhAfjuQi5KGp44Bvsk 3IkHAZIoWiLBgFX6K/5he31H70qNvnn6NYQ2wsdnzUFFcRp8W/9BHyTMznNawPvR54Ow XtcvOnasghpldPdbkkquqcp2khehn0Yyw8rL7LNCLMkQpCdpfupoX+IcdC/3Ojc1to3N NwDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :organization:message-id:date:subject:cc:to:from :arc-authentication-results; bh=EZWAZn/LNWVVW8Tz2tKsRFUW0jmGRV0qOrTheMhywIc=; b=ZlYXFAcawa+CpehvX0xccZNWmWL2MAXrvD5/dLEoVO9jPtmhtZVqlLm54E980QnOME bjRzHR9V4RT24CIszc2Q1s7Nv8Zjt80FnU9KfzMedweF58BHnH1/LioBMoY0T1hysWVZ RThYKM2NDlqdE+yeWj0lZYCJGFIgvZd7P2LXB33sa54ZS5EzNnrUSJiVIka4CiGPfPBL f4UvS7OJM1UAWtS4SBGtevc+lA1W+/YzUS+5FXjTSXVJS4gtwso+E+LQEqHkjs+zymNv 82seNOxDiY/2eoEEcBwnd6ext93cclePnag7i9dqvKddaev90K4exbz+x3vFqbJa0ZuN PIrg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l137si2814104pga.525.2018.03.01.11.31.02; Thu, 01 Mar 2018 11:31:17 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161327AbeCATaQ (ORCPT + 99 others); Thu, 1 Mar 2018 14:30:16 -0500 Received: from mail.kdab.com ([176.9.126.58]:8570 "EHLO mail.kdab.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161227AbeCATaP (ORCPT ); Thu, 1 Mar 2018 14:30:15 -0500 X-Greylist: delayed 619 seconds by postgrey-1.27 at vger.kernel.org; Thu, 01 Mar 2018 14:30:15 EST X-Virus-Scanned: amavisd-new at kdab.com From: Milian Wolff To: Andi Kleen Cc: Alexey Budankov , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel , Dmitri Prokhorov Subject: Re: [RFC PATCH] perf/core: exposing type of context-switch-out event Date: Thu, 01 Mar 2018 20:19:47 +0100 Message-ID: <11785831.IWU0hVXpm2@agathebauer> Organization: KDAB In-Reply-To: <20180301180805.GI21543@tassilo.jf.intel.com> References: <06006a92-3745-0785-cb11-ddbf70e84ded@linux.intel.com> <20180301180805.GI21543@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart40001623.NxgcFnkRuN"; micalg="sha256"; protocol="application/pkcs7-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart40001623.NxgcFnkRuN Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" On Donnerstag, 1. M=E4rz 2018 19:08:05 CET Andi Kleen wrote: > On Thu, Mar 01, 2018 at 06:40:04PM +0300, Alexey Budankov wrote: > > Hi, > >=20 > > This patch prototypes exposing the type of context-switch-out event usi= ng > > PERF_RECORD_MISC_EXT_RESERVED bit for PERF_RECORD_SWITCH[_CPU_WIDE] > > records. > It would be better to define an actually named bit in perf_event.h. > It can be the same value. >=20 > Also we would need a patch for perf script / perf report -D to print this > information. >=20 > The rest looks good to me. Please also add documentation Documentation/perf.data-file-format.txt, but = I=20 just noticed that not even PERF_RECORD_SWITCH is documented there... Otherwise I also think that this would be a very nice feature addition! =2D-=20 Milian Wolff | milian.wolff@kdab.com | Senior Software Engineer KDAB (Deutschland) GmbH, a KDAB Group company Tel: +49-30-521325470 KDAB - The Qt, C++ and OpenGL Experts --nextPart40001623.NxgcFnkRuN Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCDEIw ggXmMIIDzqADAgECAhBqm+E4O/8ra58B1dm4p1JWMA0GCSqGSIb3DQEBDAUAMIGFMQswCQYDVQQG EwJHQjEbMBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYD VQQKExFDT01PRE8gQ0EgTGltaXRlZDErMCkGA1UEAxMiQ09NT0RPIFJTQSBDZXJ0aWZpY2F0aW9u IEF1dGhvcml0eTAeFw0xMzAxMTAwMDAwMDBaFw0yODAxMDkyMzU5NTlaMIGXMQswCQYDVQQGEwJH QjEb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