lkml.org 
[lkml]   [2009]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[tip:perfcounters/core] perf tools: Add some comments to the event definitions
    Commit-ID:  2e80a32422078658c661e1e8b8973f9b8b7aa1a7
    Gitweb: http://git.kernel.org/tip/2e80a32422078658c661e1e8b8973f9b8b7aa1a7
    Author: Peter Zijlstra <a.p.zijlstra@chello.nl>
    AuthorDate: Thu, 13 Aug 2009 11:47:55 +0200
    Committer: Ingo Molnar <mingo@elte.hu>
    CommitDate: Thu, 13 Aug 2009 12:59:01 +0200

    perf tools: Add some comments to the event definitions

    Just to make it clear that these are _not_ generic event
    structures but do rely on the counter configuration.

    Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Corey J Ashford <cjashfor@us.ibm.com>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: stephane eranian <eranian@googlemail.com>
    LKML-Reference: <20090813103655.334194326@chello.nl>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>


    ---
    tools/perf/util/event.h | 6 ++++++
    1 files changed, 6 insertions(+), 0 deletions(-)

    diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h
    index d26dc88..fa7c50b 100644
    --- a/tools/perf/util/event.h
    +++ b/tools/perf/util/event.h
    @@ -4,6 +4,9 @@
    #include "util.h"
    #include <linux/list.h>

    +/*
    + * PERF_SAMPLE_IP | PERF_SAMPLE_TID | *
    + */
    struct ip_event {
    struct perf_event_header header;
    u64 ip;
    @@ -38,6 +41,9 @@ struct lost_event {
    u64 lost;
    };

    +/*
    + * PERF_FORMAT_ENABLED | PERF_FORMAT_RUNNING | PERF_FORMAT_ID
    + */
    struct read_event {
    struct perf_event_header header;
    u32 pid,tid;

    \
     
     \ /
      Last update: 2009-08-13 13:05    [W:6.162 / U:0.448 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site