lkml.org 
[lkml]   [2011]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/7] perf: use event_name() to get an event name
    Date
    perf_evsel.name may be not initialized

    Signed-off-by: Andrew Vagin <avagin@openvz.org>
    ---
    tools/perf/util/header.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
    index bcd05d0..33c17a2 100644
    --- a/tools/perf/util/header.c
    +++ b/tools/perf/util/header.c
    @@ -388,7 +388,7 @@ static int write_event_desc(int fd, struct perf_header *h __used,
    /*
    * write event string as passed on cmdline
    */
    - ret = do_write_string(fd, attr->name);
    + ret = do_write_string(fd, event_name(attr));
    if (ret < 0)
    return ret;
    /*
    --
    1.7.1


    \
     
     \ /
      Last update: 2011-11-28 10:07    [W:0.018 / U:29.892 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site