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: <20190318114619.GA7900@krava>
Date:   Mon, 18 Mar 2019 12:46:19 +0100
From:   Jiri Olsa <jolsa@...hat.com>
To:     Alexey Budankov <alexey.budankov@...ux.intel.com>
Cc:     Arnaldo Carvalho de Melo <acme@...nel.org>,
        Namhyung Kim <namhyung@...nel.org>,
        Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
        Ingo Molnar <mingo@...hat.com>,
        Peter Zijlstra <peterz@...radead.org>,
        Andi Kleen <ak@...ux.intel.com>,
        linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v9 10/12] perf report: implement record trace
 decompression

On Sat, Mar 16, 2019 at 05:17:06PM +0300, Alexey Budankov wrote:

SNIP

>  static int perf_session__deliver_event(struct perf_session *session,
>  				       union perf_event *event,
>  				       struct perf_tool *tool,
> @@ -198,12 +259,23 @@ static void perf_session__delete_threads(struct perf_session *session)
>  
>  void perf_session__delete(struct perf_session *session)
>  {
> +	struct decomp *next, *decomp;
> +	size_t decomp_len;
>  	if (session == NULL)
>  		return;
>  	auxtrace__free(session);
>  	auxtrace_index__free(&session->auxtrace_index);
>  	perf_session__destroy_kernel_maps(session);
>  	perf_session__delete_threads(session);
> +	next = session->decomp;
> +	decomp_len = session->header.env.comp_mmap_len;
> +	do {
> +		decomp = next;
> +		if (decomp == NULL)
> +			break;
> +		next = decomp->next;
> +		munmap(decomp, decomp_len + sizeof(struct decomp));
> +	} while (1);

please put this to separate function

thanks,
jirka

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ