lkml.org 
[lkml]   [2022]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/4] tools headers UAPI: Sync linux/perf_event.h with the kernel sources
    Date
    To pick the trivial change in:

    119a784c8127 ("perf/core: Add a new read format to get a number of lost samples")

    Signed-off-by: Namhyung Kim <namhyung@kernel.org>
    ---
    tools/include/uapi/linux/perf_event.h | 5 ++++-
    1 file changed, 4 insertions(+), 1 deletion(-)

    diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h
    index e2b77fbca91e..581ed4bdc062 100644
    --- a/tools/include/uapi/linux/perf_event.h
    +++ b/tools/include/uapi/linux/perf_event.h
    @@ -301,6 +301,7 @@ enum {
    * { u64 time_enabled; } && PERF_FORMAT_TOTAL_TIME_ENABLED
    * { u64 time_running; } && PERF_FORMAT_TOTAL_TIME_RUNNING
    * { u64 id; } && PERF_FORMAT_ID
    + * { u64 lost; } && PERF_FORMAT_LOST
    * } && !PERF_FORMAT_GROUP
    *
    * { u64 nr;
    @@ -308,6 +309,7 @@ enum {
    * { u64 time_running; } && PERF_FORMAT_TOTAL_TIME_RUNNING
    * { u64 value;
    * { u64 id; } && PERF_FORMAT_ID
    + * { u64 lost; } && PERF_FORMAT_LOST
    * } cntr[nr];
    * } && PERF_FORMAT_GROUP
    * };
    @@ -317,8 +319,9 @@ enum perf_event_read_format {
    PERF_FORMAT_TOTAL_TIME_RUNNING = 1U << 1,
    PERF_FORMAT_ID = 1U << 2,
    PERF_FORMAT_GROUP = 1U << 3,
    + PERF_FORMAT_LOST = 1U << 4,

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

    #define PERF_ATTR_SIZE_VER0 64 /* sizeof first published struct */
    --
    2.37.1.595.g718a3a8f04-goog
    \
     
     \ /
      Last update: 2022-08-17 00:18    [W:2.222 / U:0.088 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site