Re: [PATCH RFC V2 08/10] perf top: implement multithreading for perf_event__synthesize_threads

From: Jiri Olsa
Date: Mon Sep 18 2017 - 07:24:43 EST


On Sun, Sep 10, 2017 at 07:23:21PM -0700, kan.liang@xxxxxxxxx wrote:

SNIP

> diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h
> index ee7bcc8..7b987c8 100644
> --- a/tools/perf/util/event.h
> +++ b/tools/perf/util/event.h
> @@ -664,6 +664,17 @@ typedef int (*perf_event__handler_t)(struct perf_tool *tool,
> struct perf_sample *sample,
> struct machine *machine);
>
> +struct synthesize_threads_arg {
> + struct perf_tool *tool;
> + perf_event__handler_t process;
> + struct machine *machine;
> + bool mmap_data;
> + unsigned int proc_map_timeout;
> + struct dirent **dirent;
> + int num;
> + int start;
> +};

does not need to be global, can be defined in event.c

jirka