From: Anurup M <anurupvasu@gmail.com>
To: linux-perf-users@vger.kernel.org
Subject: Help needed. Default value for a event parameter (param=?)
Date: Tue, 26 Apr 2016 19:00:40 +0530 [thread overview]
Message-ID: <571F6D80.5010602@gmail.com> (raw)
I have a question about perf event parameter. I am trying to add an event parameter
which should take a default value if not input by the user.
I have the event added in sys/bus/event_source/devices/<pmu>/events/ and there
is a configurable event parameter "unit=?"
ex: event=0x301,units=?
The perf list list it as below
# perf list
<pmu>/<event_alias>,units=?/ [Kernel PMU event]
Now I have a requirement that If user does not pass any value for the parameter "unit"
I should take a default value in my PMU implementation. Is this supported?
If not please guide me on where the change is needed.
Any suggestions are appreciated.
Thanks,
Anurup
reply other threads:[~2016-04-26 13:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=571F6D80.5010602@gmail.com \
--to=anurupvasu@gmail.com \
--cc=linux-perf-users@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.