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]
Date:   Wed, 14 Dec 2016 18:59:11 +0100
From:   Jiri Olsa <jolsa@...hat.com>
To:     kan.liang@...el.com
Cc:     acme@...nel.org, linux-kernel@...r.kernel.org, mingo@...hat.com,
        peterz@...radead.org, jolsa@...nel.org, adrian.hunter@...el.com,
        andi@...stfloor.org
Subject: Re: [PATCH] perf tools: ignore zombie process for user profile

On Wed, Dec 14, 2016 at 12:48:05PM -0500, kan.liang@...el.com wrote:
> From: Kan Liang <kan.liang@...el.com>
> 
> If user has zombie process, the perf record -u will error out.
> Here is an example.
>  $ ./testd &
>  [1] 23796
>  $ sudo perf record -e cycles -u kan
>  Error:
>  The sys_perf_event_open() syscall returned with 3 (No such process) for
>  event (cycles).
>  /bin/dmesg may provide additional information.
>  No CONFIG_PERF_EVENTS=y kernel support configured?
> 
> The source code of testd is as below.
>  int main() {
> 
> 	if (fork())
> 	{
> 		while (1);
> 	}
> 	return 0;
>  }
> 
> Zombie process is dead process. It is meaningless to profile it.
> It's better to ignore it for user profile.

I recently posted different patch for same issue:
  http://marc.info/?l=linux-kernel&m=148153895827359&w=2

jirka

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ