lkml.org 
[lkml]   [2012]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v4 06/18] perf: add support for PERF_SAMPLE_ADDR in dump_sampple()
    Date
    Was missing from current code yet PERF_SAMPLE_ADDR has
    been present for a long time. Needed for PEBS-LL mode.

    Signed-off-by: Stephane Eranian <eranian@google.com>
    ---
    tools/perf/util/session.c | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
    index 117983e..3982fc3 100644
    --- a/tools/perf/util/session.c
    +++ b/tools/perf/util/session.c
    @@ -1009,6 +1009,10 @@ static void dump_sample(struct perf_evsel *evsel, union perf_event *event,

    if (sample_type & PERF_SAMPLE_WEIGHT)
    printf(" ... weight: %"PRIu64"\n", sample->weight);
    +
    + if (sample_type & PERF_SAMPLE_ADDR)
    + printf(" ..... data: 0x%"PRIx64"\n", sample->addr);
    +
    }

    static struct machine *
    --
    1.7.9.5


    \
     
     \ /
      Last update: 2012-12-20 17:01    [W:3.611 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site