Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753098AbbFLKhY (ORCPT ); Fri, 12 Jun 2015 06:37:24 -0400 Received: from mga03.intel.com ([134.134.136.65]:7356 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750894AbbFLKhW (ORCPT ); Fri, 12 Jun 2015 06:37:22 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,601,1427785200"; d="scan'208";a="725944678" Message-ID: <557AB5D1.9050905@intel.com> Date: Fri, 12 Jun 2015 13:34:57 +0300 From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: David Ahern CC: Peter Zijlstra , Andi Kleen , Arnaldo Carvalho de Melo , Ingo Molnar , linux-kernel@vger.kernel.org, Jiri Olsa , Stephane Eranian , mathieu.poirier@linaro.org, Pawel Moll Subject: Re: [RFC PATCH] perf: Add PERF_RECORD_SWITCH to indicate context switches References: <1433859670-10806-1-git-send-email-adrian.hunter@intel.com> <20150611141548.GW19282@twins.programming.kicks-ass.net> <557A2C14.4010804@gmail.com> In-Reply-To: <557A2C14.4010804@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 966 Lines: 21 On 12/06/15 03:47, David Ahern wrote: > On 6/11/15 8:15 AM, Peter Zijlstra wrote: >>> This new PERF_RECORD_SWITCH event does not have those problems >>> and it also has a couple of other small advantages. It is >>> easier to use because it is an auxiliary event (like mmap, >>> comm and task events) which can be enabled by setting a single >>> bit. It is smaller than sched:sched_switch and easier to parse. >> >> Right, so the one wee problem I have is that this only provides sched_in >> data, I imagine people might be interested in sched_out as well. > > Yes and with the option of collecting callchains for sched_out. So what do you want that is different different from PERF_COUNT_SW_CONTEXT_SWITCHES? And why? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/