From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754719AbcJMLnJ (ORCPT ); Thu, 13 Oct 2016 07:43:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50574 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754504AbcJMLnC (ORCPT ); Thu, 13 Oct 2016 07:43:02 -0400 Date: Thu, 13 Oct 2016 13:32:52 +0200 From: Jiri Olsa To: Andi Kleen Cc: acme@kernel.org, jolsa@kernel.org, linux-kernel@vger.kernel.org, Andi Kleen Subject: Re: [PATCH 1/2] perf, tools: Implement branch_type event parameter Message-ID: <20161013113252.GA8036@krava> References: <1476306127-19721-1-git-send-email-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476306127-19721-1-git-send-email-andi@firstfloor.org> User-Agent: Mutt/1.7.0 (2016-08-17) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 13 Oct 2016 11:32:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 12, 2016 at 02:02:06PM -0700, Andi Kleen wrote: > From: Andi Kleen > > It can be useful to specify branch type state per event, for example > if we want to collect both software trace points and last branch PMU > events in a single collection. Currently this doesn't work because > the software trace point errors out with -b. > > There was already a branch-type parameter to configure branch sample > types per event in the parser, but it was stubbed out. This patch > implements the necessary plumbing to actually enable it. > > Now > > perf record -e sched:sched_switch,cpu/cpu-cycles,branch_type=any/ ... > > works > > Signed-off-by: Andi Kleen Acked-by: Jiri Olsa thanks, jirka