lkml.org 
[lkml]   [2018]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5/7] perf data: Update documentation section on cpu topology
    Date
    From: Thomas Richter <tmricht@linux.ibm.com>

    Add an explanation of each cpu's core and socket identifier to the
    perf.data file format documentation.

    Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
    Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
    Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
    Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
    Link: http://lkml.kernel.org/r/20180528074433.16652-1-tmricht@linux.ibm.com
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    ---
    tools/perf/Documentation/perf.data-file-format.txt | 8 ++++++++
    1 file changed, 8 insertions(+)

    diff --git a/tools/perf/Documentation/perf.data-file-format.txt b/tools/perf/Documentation/perf.data-file-format.txt
    index d00f0d51cab8..c57904a526ce 100644
    --- a/tools/perf/Documentation/perf.data-file-format.txt
    +++ b/tools/perf/Documentation/perf.data-file-format.txt
    @@ -153,10 +153,18 @@ struct {
    HEADER_CPU_TOPOLOGY = 13,

    String lists defining the core and CPU threads topology.
    +The string lists are followed by a variable length array
    +which contains core_id and socket_id of each cpu.
    +The number of entries can be determined by the size of the
    +section minus the sizes of both string lists.

    struct {
    struct perf_header_string_list cores; /* Variable length */
    struct perf_header_string_list threads; /* Variable length */
    + struct {
    + uint32_t core_id;
    + uint32_t socket_id;
    + } cpus[nr]; /* Variable length records */
    };

    Example:
    --
    2.14.3
    \
     
     \ /
      Last update: 2018-05-31 12:34    [W:3.449 / U:0.124 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site