Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1468614

Re: [PATCH V5 0/9] perf: Driver specific configuration for PMU

From Mathieu Poirier <mathieu.poirier@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH V5 0/9] perf: Driver specific configuration for PMU
Date 2016-08-23 17:00 +0200
Message-ID <s9llg-5mY-7@gated-at.bofh.it> (permalink)
References <s511M-6al-27@gated-at.bofh.it> <s8Zb4-7Xs-35@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 22 August 2016 at 09:15, Alexander Shishkin
<alexander.shishkin@linux.intel.com> wrote:
> Mathieu Poirier <mathieu.poirier@linaro.org> writes:
>
>> As such something that used to be a two-step process:
>>
>> # echo 1 > /sys/bus/coresight/devices/20070000.etr/enable_sink
>> # perf record -e cs_etm//u --per-thread  uname
>>
>> is integrated in a single command:
>>
>> # perf record -e cs_etm/@sink=20070000.etr/u --per-thread  uname
>
> Can't we simply teach perf record to write 1 to that sysfs attribute and
> avoid parsing more ascii strings in the kernel? I suspect that would also
> take way less code.

That, in my opinion, would be a big hack.  Peter and Jiri, any thoughts on this?

>
> Are there any other use cases for this besides specifying @sink for a
> ETM?

Not at this time but there is so many configuration option for the
ETM/PTM tracers (that aren't filters) that I wanted the right
infrastructure to be there should/when we need to expand.

Thanks for taking the time to review this set,
Mathieu

>
> Regards,
> --
> Alex

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH V5 0/9] perf: Driver specific configuration for PMU Mathieu Poirier <mathieu.poirier@linaro.org> - 2016-08-11 18:30 +0200
  Re: [PATCH V5 0/9] perf: Driver specific configuration for PMU Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2016-08-22 17:20 +0200
    Re: [PATCH V5 0/9] perf: Driver specific configuration for PMU Mathieu Poirier <mathieu.poirier@linaro.org> - 2016-08-23 17:00 +0200
      Re: [PATCH V5 0/9] perf: Driver specific configuration for PMU Alexander Shishkin <alexander.shishkin@linux.intel.com> - 2016-08-23 19:10 +0200
        Re: [PATCH V5 0/9] perf: Driver specific configuration for PMU Mathieu Poirier <mathieu.poirier@linaro.org> - 2016-08-23 21:50 +0200

csiph-web