lkml.org 
[lkml]   [2012]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/9] perf, tool: Make perf_evlist__splice_list_tail global
    Date
    Making perf_evlist__splice_list_tail globaly accessible.
    It is used in the upcomming paches.

    Signed-off-by: Jiri Olsa <jolsa@redhat.com>
    ---
    tools/perf/util/evlist.c | 6 +++---
    tools/perf/util/evlist.h | 5 +++++
    2 files changed, 8 insertions(+), 3 deletions(-)

    diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c
    index 3f16e08..b918e30 100644
    --- a/tools/perf/util/evlist.c
    +++ b/tools/perf/util/evlist.c
    @@ -97,9 +97,9 @@ void perf_evlist__add(struct perf_evlist *evlist, struct perf_evsel *entry)
    ++evlist->nr_entries;
    }

    -static void perf_evlist__splice_list_tail(struct perf_evlist *evlist,
    - struct list_head *list,
    - int nr_entries)
    +void perf_evlist__splice_list_tail(struct perf_evlist *evlist,
    + struct list_head *list,
    + int nr_entries)
    {
    list_splice_tail(list, &evlist->entries);
    evlist->nr_entries += nr_entries;
    diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h
    index 8922aee..6ec2f6e 100644
    --- a/tools/perf/util/evlist.h
    +++ b/tools/perf/util/evlist.h
    @@ -117,4 +117,9 @@ u16 perf_evlist__id_hdr_size(const struct perf_evlist *evlist);

    bool perf_evlist__valid_sample_type(const struct perf_evlist *evlist);
    bool perf_evlist__valid_sample_id_all(const struct perf_evlist *evlist);
    +
    +void perf_evlist__splice_list_tail(struct perf_evlist *evlist,
    + struct list_head *list,
    + int nr_entries);
    +
    #endif /* __PERF_EVLIST_H */
    --
    1.7.6.5


    \
     
     \ /
      Last update: 2012-01-16 13:35    [W:0.022 / U:1.412 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site