lkml.org 
[lkml]   [2017]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RFC V2 08/10] perf top: implement multithreading for perf_event__synthesize_threads
On Sun, Sep 10, 2017 at 07:23:21PM -0700, kan.liang@intel.com 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

\
 
 \ /
  Last update: 2017-09-18 13:24    [W:0.160 / U:1.024 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site