From: Andi Kleen Subject: Re: [PATCH v2]: perf record: enable arbitrary event names thru name= modifier Date: Fri, 1 Jun 2018 16:01:00 -0700 Message-ID: <20180601230100.GN30764@tassilo.jf.intel.com> References: <23f72f9b-c513-ecd4-d375-c5cf2eb30197@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <23f72f9b-c513-ecd4-d375-c5cf2eb30197@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org To: Alexey Budankov Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-kernel , linux-perf-users@vger.kernel.org List-Id: linux-perf-users.vger.kernel.org On Thu, May 31, 2018 at 05:08:12PM +0300, Alexey Budankov wrote: > > Enable complex event names containing [.:=,] symbols to be encoded into Perf > trace using name= modifier e.g. like this: > > perf record -e cpu/name=\'OFFCORE_RESPONSE:request=DEMAND_RFO:response=L3_HIT.SNOOP_HITM\',\ > period=0x3567e0,event=0x3c,cmask=0x1/Duk ./futex > > Below is how it looks like in the report output. Please note explicit escaped > quoting at cmdline string in the header so that thestring can be directly reused > for another collection in shell: Patch looks good, but new syntax also needs to be documented in some manpage (e.g. perf list) -Andi