From: Mathieu Poirier <mathieu.poirier-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Vince Weaver <vince-yfjdyHUqu3OsTnJN9+BGXg@public.gmane.org>
Cc: Michael Kerrisk-manpages
<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Peter Zijlstra <peterz-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] perf_event_open.2: 4.9 PERF_EVENT_IOC_SET_DRV_CONFIGS support
Date: Fri, 12 Aug 2016 12:02:51 -0600 [thread overview]
Message-ID: <CANLsYkwvLQCBkn5yXne2vm+eqcErH=ABmK0yPu=g_F-+HkCiQg@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.11.1608121351590.15187-C8guHiyadNolD86y6aYYU+kYYgab/bYf@public.gmane.org>
On 12 August 2016 at 11:57, Vince Weaver <vince-yfjdyHUqu3OsTnJN9+BGXg@public.gmane.org> wrote:
> On Thu, 11 Aug 2016, Mathieu Poirier wrote:
>> +.TP
>> +.BR PERF_EVENT_IOC_SET_DRV_CONFIGS " (since Linux 4.9)"
>> +This makes it possible to pass configuration parameters to PMU drivers.
>> +Configuration parameters are specific to each drivers.
>> +
>> +The argument is a pointer to the desired configuration parameters.
>
> So I gave up and read the code and I'm guessing this is what you really
> mean:
>
> .TP
> .BR PERF_EVENT_IOC_SET_DRV_CONFIGS " (since Linux 4.9)"
> Pass custom configuration paramaters to a PMU driver.
>
> The argument is a pointer to a NUL-termiated string of up to
> PAGE_SIZE in length.
> The string contains a list of comma-separated configuration options
> that will be parsed by the kernel.
> The kernel handles both singleton values as well as name/value pairs
> that are indicated with the '=' character.
> The size of the strings is limited internally to PERF_DRV_CONFIG_MAX
> (which is not visible to userspace).
>
Yes this is a very good description but in sharp contrast with what is
currently done for the ioctl() descriptors in this page. I shied away
from writing that much based on how slim the current descriptions
were.
>
>
> some additional questions: can this ioctl be run at any time or should it
> only be run while the event is quiet? Does the change in options take
> place immediately?
That is up to PMU drivers to decide - for CoreSight it is set only
once when trace sessions are created. Any changes from thereon will
be ignored.
Thanks for the review.
Mathieu
>
> Vince
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2016-08-12 18:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-11 17:09 [PATCH] perf_event_open.2: 4.9 PERF_EVENT_IOC_SET_DRV_CONFIGS support Mathieu Poirier
[not found] ` <1470935365-2097-1-git-send-email-mathieu.poirier-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-08-12 16:52 ` Vince Weaver
[not found] ` <alpine.DEB.2.11.1608121248100.10883-C8guHiyadNolD86y6aYYU+kYYgab/bYf@public.gmane.org>
2016-08-12 17:56 ` Mathieu Poirier
[not found] ` <CANLsYkyKJJ-qHjyzpus6=Cx7OjN5gigBFdd2-cc7e-ezosJTjQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-08-12 20:31 ` Vince Weaver
[not found] ` <alpine.DEB.2.11.1608121620200.25142-C8guHiyadNolD86y6aYYU+kYYgab/bYf@public.gmane.org>
2016-08-12 20:47 ` Mathieu Poirier
2016-10-21 6:50 ` Michael Kerrisk (man-pages)
[not found] ` <7c5322b9-51f1-2cb3-4aa5-6cc21b90baed-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-10-21 14:22 ` Mathieu Poirier
2016-08-12 17:57 ` Vince Weaver
[not found] ` <alpine.DEB.2.11.1608121351590.15187-C8guHiyadNolD86y6aYYU+kYYgab/bYf@public.gmane.org>
2016-08-12 18:02 ` Mathieu Poirier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANLsYkwvLQCBkn5yXne2vm+eqcErH=ABmK0yPu=g_F-+HkCiQg@mail.gmail.com' \
--to=mathieu.poirier-qsej5fyqhm4dnm+yrofe0a@public.gmane.org \
--cc=linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=peterz-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
--cc=vince-yfjdyHUqu3OsTnJN9+BGXg@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).