lkml.org 
[lkml]   [2012]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[tip:perf/core] perf tools: Dump exclude_{guest,host}, precise_ip header info too
    Commit-ID:  78b961ff8e67207adb15959526cdea4cc50ae1ed
    Gitweb: http://git.kernel.org/tip/78b961ff8e67207adb15959526cdea4cc50ae1ed
    Author: David Ahern <dsahern@gmail.com>
    AuthorDate: Fri, 20 Jul 2012 17:25:52 -0600
    Committer: Arnaldo Carvalho de Melo <acme@redhat.com>
    CommitDate: Wed, 25 Jul 2012 11:31:19 -0300

    perf tools: Dump exclude_{guest,host}, precise_ip header info too

    Adds the attributes to the event line in the header dump.
    From:
    event : name = cycles, type = 0, config = 0x0, config1 = 0x0,
    config2 = 0x0, excl_usr = 0, excl_kern = 0, ...
    to
    event : name = cycles, type = 0, config = 0x0, config1 = 0x0,
    config2 = 0x0, excl_usr = 0, excl_kern = 0, excl_host = 0,
    excl_guest = 0, precise_ip = 0, ...

    Signed-off-by: David Ahern <dsahern@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Link: http://lkml.kernel.org/r/1342826756-64663-8-git-send-email-dsahern@gmail.com
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    ---
    tools/perf/util/header.c | 6 ++++++
    1 files changed, 6 insertions(+), 0 deletions(-)

    diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
    index 5a47aba..3a6d204 100644
    --- a/tools/perf/util/header.c
    +++ b/tools/perf/util/header.c
    @@ -1212,6 +1212,12 @@ static void print_event_desc(struct perf_header *ph, int fd, FILE *fp)
    attr.exclude_user,
    attr.exclude_kernel);

    + fprintf(fp, ", excl_host = %d, excl_guest = %d",
    + attr.exclude_host,
    + attr.exclude_guest);
    +
    + fprintf(fp, ", precise_ip = %d", attr.precise_ip);
    +
    if (nr)
    fprintf(fp, ", id = {");


    \
     
     \ /
      Last update: 2012-07-25 22:01    [W:0.039 / U:30.028 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site