All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Minor fixes error handling of perf stat
@ 2024-09-13 13:59 Levi Yun
  2024-09-13 13:59 ` [PATCH v4 1/2] perf stat: Close cork_fd when create_perf_stat_counter() failed Levi Yun
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Levi Yun @ 2024-09-13 13:59 UTC (permalink / raw)
  To: peterz, mingo, acme, namhyung, mark.rutland, alexander.shishkin,
	jolsa, irogers, james.clark, asmadeus
  Cc: linux-perf-users, linux-kernel, nd, Levi Yun

This patchset fixes two issues that were seen when running
  "perf stat -r" with perf_event_paranoid=3

   1. failed with Too many open files.
     $ perf stat -r 1044 -- false
     ...
     failed to create 'go' pipe: Too many open files
     failed to prepare workload: Too many open files
     ...

   2. repating error message
     $ perf stat -r 1044 -- false
     Error:
     Access to performance monitoring and observability operations is limited.
     ...
     (repating with same error message 1044 times).

v4:
  - Move comments to run_perf_stat().

v3:
  - Fix comments.

v2:
  - Add some comments.

Levi Yun (2):
  perf stat: Close cork_fd when create_perf_stat_counter() failed
  perf stat: Stop repeating when ref_perf_stat() returns -1

 tools/perf/builtin-stat.c | 11 ++++++++++-
 tools/perf/util/evlist.c  | 14 +++++++++++++-
 tools/perf/util/evlist.h  |  1 +
 3 files changed, 24 insertions(+), 2 deletions(-)

--
LEVI:{C3F47F37-75D8-414A-A8BA-3980EC8A46D7}


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-25 10:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-13 13:59 [PATCH v4 0/2] Minor fixes error handling of perf stat Levi Yun
2024-09-13 13:59 ` [PATCH v4 1/2] perf stat: Close cork_fd when create_perf_stat_counter() failed Levi Yun
2024-09-24 19:29   ` Namhyung Kim
2024-09-25 10:38     ` Yeo Reum Yun
2024-09-13 13:59 ` [PATCH v4 2/2] perf stat: Stop repeating when ref_perf_stat() returns -1 Levi Yun
2024-09-24  7:13 ` [PATCH v4 0/2] Minor fixes error handling of perf stat Yeo Reum Yun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.