lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170918112435.GA7013@krava>
Date:   Mon, 18 Sep 2017 13:24:35 +0200
From:   Jiri Olsa <jolsa@...hat.com>
To:     kan.liang@...el.com
Cc:     acme@...nel.org, peterz@...radead.org, mingo@...hat.com,
        linux-kernel@...r.kernel.org, jolsa@...nel.org,
        namhyung@...nel.org, adrian.hunter@...el.com,
        lukasz.odzioba@...el.com, ak@...ux.intel.com
Subject: Re: [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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ