Skip to content

Commit 65ba872

Browse files
namhyungacmel
authored andcommitted
tools headers UAPI: Sync linux/perf_event.h with the kernel sources
To pick the trivial change in: 119a784 ("perf/core: Add a new read format to get a number of lost samples") Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20220819003644.508916-2-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent e5bc0de commit 65ba872

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tools/include/uapi/linux/perf_event.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,15 @@ enum {
301301
* { u64 time_enabled; } && PERF_FORMAT_TOTAL_TIME_ENABLED
302302
* { u64 time_running; } && PERF_FORMAT_TOTAL_TIME_RUNNING
303303
* { u64 id; } && PERF_FORMAT_ID
304+
* { u64 lost; } && PERF_FORMAT_LOST
304305
* } && !PERF_FORMAT_GROUP
305306
*
306307
* { u64 nr;
307308
* { u64 time_enabled; } && PERF_FORMAT_TOTAL_TIME_ENABLED
308309
* { u64 time_running; } && PERF_FORMAT_TOTAL_TIME_RUNNING
309310
* { u64 value;
310311
* { u64 id; } && PERF_FORMAT_ID
312+
* { u64 lost; } && PERF_FORMAT_LOST
311313
* } cntr[nr];
312314
* } && PERF_FORMAT_GROUP
313315
* };
@@ -317,8 +319,9 @@ enum perf_event_read_format {
317319
PERF_FORMAT_TOTAL_TIME_RUNNING = 1U << 1,
318320
PERF_FORMAT_ID = 1U << 2,
319321
PERF_FORMAT_GROUP = 1U << 3,
322+
PERF_FORMAT_LOST = 1U << 4,
320323

321-
PERF_FORMAT_MAX = 1U << 4, /* non-ABI */
324+
PERF_FORMAT_MAX = 1U << 5, /* non-ABI */
322325
};
323326

324327
#define PERF_ATTR_SIZE_VER0 64 /* sizeof first published struct */

0 commit comments

Comments
 (0)