public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tim Blechmann <tim@klingt.org>
To: linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] perf: replace irq_period with union in design document
Date: Mon, 28 Dec 2009 12:20:08 +0100	[thread overview]
Message-ID: <4B389468.5060209@klingt.org> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 289 bytes --]


perf_event_attr.irq_period has been renamed to sample_period/sample_freq.
the design document was still using the old name, though.

Signed-off-by: Tim Blechmann <tim@klingt.org>
---
 tools/perf/design.txt |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-perf-replace-irq_period-with-union-in-design-documen.patch --]
[-- Type: text/x-patch; name="0001-perf-replace-irq_period-with-union-in-design-documen.patch", Size: 1367 bytes --]

diff --git a/tools/perf/design.txt b/tools/perf/design.txt
index a58cc9a..d68515f 100644
--- a/tools/perf/design.txt
+++ b/tools/perf/design.txt
@@ -43,7 +43,11 @@ struct perf_event_attr {
          */
         __u64                   config;
 
-        __u64                   irq_period;
+        union {
+            __u64               sample_period;
+            __u64               sample_freq;
+        };
+
         __u32                   record_type;
         __u32                   read_format;
 
@@ -147,7 +151,7 @@ tracer is available, and event_id values can be obtained from
 Counters come in two flavours: counting counters and sampling
 counters.  A "counting" counter is one that is used for counting the
 number of events that occur, and is characterised by having
-irq_period = 0.
+sample_period = 0.
 
 
 A read() on a counter returns the current value of the counter and possible
@@ -170,8 +174,8 @@ into account.
 
 
 A "sampling" counter is one that is set up to generate an interrupt
-every N events, where N is given by 'irq_period'.  A sampling counter
-has irq_period > 0. The record_type controls what data is recorded on each
+every N events, where N is given by 'sample_period'.  A sampling counter
+has sample_period > 0. The record_type controls what data is recorded on each
 interrupt:
 
 /*


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

                 reply	other threads:[~2009-12-28 11:20 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=4B389468.5060209@klingt.org \
    --to=tim@klingt.org \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox