Received: by 10.223.185.116 with SMTP id b49csp7733730wrg; Thu, 1 Mar 2018 10:09:19 -0800 (PST) X-Google-Smtp-Source: AG47ELt48h0AWqZ6UkANm/txxJKnBIbTal2cSnYzJF+SlTV4rQvXhvArixgZsSkFgrMP3U34LSW8 X-Received: by 10.98.85.197 with SMTP id j188mr2803676pfb.86.1519927759095; Thu, 01 Mar 2018 10:09:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519927759; cv=none; d=google.com; s=arc-20160816; b=cFyqyMQOtaaY7DNa23PV4NUMFdDea7Fy+rug5Lh0l/MNNMKoo5ZXSpV6XRsSjFy40S Du4mo1xKSQIiyaIM/9J3ANzlCoBNGAL9215pGcwpHvL00xUnJORoD4B1+2NOzQsEIQ75 PsaXSzk15Lv0+I3MJS4QFRF/CTxrPIdIRuB3wE8MWkZgCErmrqx6h/VrsZrCjpONbjJC n0VXD34BqfBdDQb+52WtaEs+P3O3DV4K/u3Ern73sUWHwoyPITcYKUCrPHzbzKqTfaQE 4fvV2DJM5s3oByRd+Qv31ivn5I1xdyeSIp10BkVE0q8oOzo47W/91oBaByREumvYLAHA GITA== 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:arc-authentication-results; bh=TTN0yFXHFtcTJvsoDbYC2Rng3mwlw9RYubGTUFh99yY=; b=wtlwRlUk4VfkWqgFlbDt1i92GFsbDkWiHp97104nhtiIBBNDso/EMVCcnTKfI8j37z 0WNlfgAsglQHc4u6NY5thbaklITukpUI3dsCanTt4QbXjuDkRrclXZUmxbK7RqNhw6L2 VPy3Flhkx32BDd9v7ILcasc6L94Myk4mhHh56yByeqeh1M1LKeEoECIVoNlwKx60U/Xx PpLdneQIKkcU9XbbfQCOykkCjQa2HN8wgfeFcd6niJOx095u4SZc8zL0bMqAOvul3fGW +4ebFw+MQ3DiflSYj8lv2mXhFZF4LdhX1gJnOPTVlQPCByXrAJcqh5a9tdSAt6RHRNe4 PVjQ== 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 d14si879892pfk.29.2018.03.01.10.09.03; Thu, 01 Mar 2018 10:09:19 -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 S1033778AbeCASIY (ORCPT + 99 others); Thu, 1 Mar 2018 13:08:24 -0500 Received: from mga07.intel.com ([134.134.136.100]:47138 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033196AbeCASIW (ORCPT ); Thu, 1 Mar 2018 13:08:22 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Mar 2018 10:08:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,408,1515484800"; d="scan'208";a="24365001" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.133]) by fmsmga002.fm.intel.com with ESMTP; 01 Mar 2018 10:08:20 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id 75B253018BC; Thu, 1 Mar 2018 10:08:05 -0800 (PST) Date: Thu, 1 Mar 2018 10:08:05 -0800 From: Andi Kleen To: Alexey Budankov Cc: 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 Message-ID: <20180301180805.GI21543@tassilo.jf.intel.com> References: <06006a92-3745-0785-cb11-ddbf70e84ded@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <06006a92-3745-0785-cb11-ddbf70e84ded@linux.intel.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 On Thu, Mar 01, 2018 at 06:40:04PM +0300, Alexey Budankov wrote: > Hi, > > This patch prototypes exposing the type of context-switch-out event using > 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. Also we would need a patch for perf script / perf report -D to print this information. The rest looks good to me. -Andi