lkml.org 
[lkml]   [2015]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 39/57] perf tools: Make cpu_map__build_map global
    Date
    We'll need to call it from perf stat in following patches.

    Link: http://lkml.kernel.org/n/tip-yh8s2m4cz0hfrr6mmldtww8r@git.kernel.org
    Signed-off-by: Jiri Olsa <jolsa@kernel.org>
    ---
    tools/perf/util/cpumap.c | 4 ++--
    tools/perf/util/cpumap.h | 2 ++
    2 files changed, 4 insertions(+), 2 deletions(-)

    diff --git a/tools/perf/util/cpumap.c b/tools/perf/util/cpumap.c
    index 511f028ee7a6..6d12c431fb7c 100644
    --- a/tools/perf/util/cpumap.c
    +++ b/tools/perf/util/cpumap.c
    @@ -317,8 +317,8 @@ static int cmp_ids(const void *a, const void *b)
    return *(int *)a - *(int *)b;
    }

    -static int cpu_map__build_map(struct cpu_map *cpus, struct cpu_map **res,
    - int (*f)(struct cpu_map *map, int cpu))
    +int cpu_map__build_map(struct cpu_map *cpus, struct cpu_map **res,
    + int (*f)(struct cpu_map *map, int cpu))
    {
    struct cpu_map *c;
    int nr = cpus->nr;
    diff --git a/tools/perf/util/cpumap.h b/tools/perf/util/cpumap.h
    index 43a64a3fecdf..5f979cb15d46 100644
    --- a/tools/perf/util/cpumap.h
    +++ b/tools/perf/util/cpumap.h
    @@ -89,4 +89,6 @@ static inline int cpu__get_node(int cpu)
    return cpunode_map[cpu];
    }

    +int cpu_map__build_map(struct cpu_map *cpus, struct cpu_map **res,
    + int (*f)(struct cpu_map *map, int cpu));
    #endif /* __PERF_CPUMAP_H */
    --
    2.4.3


    \
     
     \ /
      Last update: 2015-10-16 13:01    [W:2.160 / U:0.104 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site