From: "stephane eranian" <eranian@googlemail.com>
To: "Pavel Machek" <pavel@suse.cz>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [patch 23/24] perfmon3: kernel documentation
Date: Mon, 20 Oct 2008 09:55:01 +0200 [thread overview]
Message-ID: <7c86c4470810200055u3d8ad80fqac4be901fe529fba@mail.gmail.com> (raw)
In-Reply-To: <20081019133749.GA1546@ucw.cz>
Pavel,
On Sun, Oct 19, 2008 at 3:37 PM, Pavel Machek <pavel@suse.cz> wrote:
> Hi!
>
>> + * int pfm_create(int flags, pfarg_sinfo_t *s);
>> +
>> + This function creates a perfmon per-thread session.
>> + The flags parameter is currently unused and must be set to 0.
>> +
>> + Upon return and if s is not NULL, the kernel return the list
>> of available
>
> returns?
>
pfm_create() returns the file descriptor identifying the session or -1
in case of error + errno set.
>> + PMC and PMD registers. Tools should not assume, they have access to the
>> + entire PMU, it may be shared with other kernel subsystems, e.g., on X86
>> + the NMI watchdog timer.
>
> How can kernel return anything?
>
I assume you are talking about pfarg_sinfo_t?
That structure contains bitmasks. If not NULL , the kernel updates the
structure to reflect the
list of available registers.
prev parent reply other threads:[~2008-10-20 7:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-17 15:06 eranian
2008-10-19 13:37 ` Pavel Machek
2008-10-20 7:55 ` stephane eranian [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=7c86c4470810200055u3d8ad80fqac4be901fe529fba@mail.gmail.com \
--to=eranian@googlemail.com \
--cc=eranian@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@suse.cz \
/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
all inboxes | Powered by JetHome®