Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp4328217ybn; Fri, 27 Sep 2019 21:39:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPUGH7rbD3c4ZHhw7P6mb+OQ91quuu8cZJNH8lYuSxygZsLervVyniQpKu5Epax3NaeQRU X-Received: by 2002:a17:906:a2c7:: with SMTP id by7mr10644869ejb.13.1569645593115; Fri, 27 Sep 2019 21:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569645593; cv=none; d=google.com; s=arc-20160816; b=YpBaGn57ikLiWa4G4QKv/ntFFXboNwLSutptqUfIcXdDpTJqFIch2lYpjWe2gU0Lfm IqmUUF6ftZAmvlto+OOLCyS1z2nv0alIcCumIOxNz/EnsRpNpkYQtRHuW10E0NfemXkQ X1p0INt+9Xc+i12XXzRzv+yLtwFBnIh+01H7WM1VGTVoPkaPbQ507C1Z09893MBP6sZt Eq5QST03hpQHzm6/139P6tUg7ZhCmPAUi++jAaVITOIQV/4JfYat8E5aB9OOsP2OKnS4 UbJFLb8V5QGquo4X+eSasRHI5/jXA5FAHX6vvUW7KbQXi1oc7jOp25DvMX4KL1wy0Uqw brbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rbRLrePd745uUQO1OgkG0ITX19watITISzXEVZhuFt8=; b=PiDzaoLtrhkMORznY3rq0E144xjOqMWHNUX+vNwlP3S5iKReQPDko2x/p2lnT+k0KO gBYLA8AUXd3K239GcunUXjYA4X74tdThqoIx3K3r+4HDqocSDhUURod4ryww+9gaxXnj A1cBWto4H+Hc5Lpxdk5r7/VzRoEsD0UOSlT2RoVYYye0eVxOqKgW1wYBPrx/B8Qv/1sM IaO/l7P2UJymB0Lbib2/61hYjE9UAnXbWBSLJ/mKxYJbS/CTt94v2cmNYgEdyF61I1PZ dXK2cArAsFXUcmNGN1VUh9ugpHmvvC5u0EBd1xYjBm6XreWNo3m5p/f1M8GCC3QJAb3B B2Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eLk428HU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11si3829226ejc.366.2019.09.27.21.39.16; Fri, 27 Sep 2019 21:39:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eLk428HU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725876AbfI1EjM (ORCPT + 99 others); Sat, 28 Sep 2019 00:39:12 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:40542 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725263AbfI1EjM (ORCPT ); Sat, 28 Sep 2019 00:39:12 -0400 Received: by mail-io1-f67.google.com with SMTP id h144so22357406iof.7 for ; Fri, 27 Sep 2019 21:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rbRLrePd745uUQO1OgkG0ITX19watITISzXEVZhuFt8=; b=eLk428HUQguzTDWuEcR2L6hhWjHRnE/KExpbaeJApRbwRZbJIPmxZWzrryqJQKHG84 7Qdb0tfQjL9FaatcilD0lugv6okoRmxS61gxI8yGsfbWClIHOEpaA5pIXNlcxCp2wgrq puXae/C8jJaZPkd5u7rOgp24XiGBimZQcty0jmldYAa2w9uoE1dKljro3L4+1IwmiiKp /Vkb06lGVCg5kSwO8dIMVAxT3beko1nGJSgR6fRQu83MgvHs27ntSe0urR+5UENGObbB SlyDO1VMglOCvgfXCfKtG9UkFlfoskxzT9GIqQKaaE7gp8dkOKRIxNhswtw5nlBI7kUy 7S+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rbRLrePd745uUQO1OgkG0ITX19watITISzXEVZhuFt8=; b=HZDMpVY2HN4mrjbz5IJ6IkqvwQn6cahTq7jJmRV5pg1gb9ytyYUILb1kcagNjXX9uN TLo6MgYUUlOXYEwZ4oB+P+Yj4tXtFW7Le2sI0Q+3JjO5LQjQnf+VUD9hSiCMfxAglf0Z qKlnx6PSRVybf/ucsBW5AqWZ/s68Bh+7ps3zOCxicBoYTiNyHcsuNsafL/CZjur8v2e6 EQdcwkVT6xcOfG5PcUK4zGEiDsjaKwcr0LHf++xke8zAjSYpExA0jw/MY0P3TVZxAZdn Iim6Jwpr3gfhfKZ3rINXzO0aIRbe1c7RFOjRULcBW9h4tYuzoOHPjO1TPfU8x1y5AUa1 ED9A== X-Gm-Message-State: APjAAAXy35e37vFrKlQcUyu5um9DlvyRnzmruWSjNkFo34U2lZwd8M2y 4p9hbUYW35Yr03fG0V8hg99eILGa9DbGHAicZtYPng== X-Received: by 2002:a05:6602:2241:: with SMTP id o1mr11249291ioo.129.1569645551405; Fri, 27 Sep 2019 21:39:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Stephane Eranian Date: Fri, 27 Sep 2019 21:39:00 -0700 Message-ID: Subject: Re: [PATCH 4/4] perf docs: Correct and clarify jitdump spec To: Steve MacLean Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Eric Saint-Etienne , John Keeping , Andi Kleen , Song Liu , Davidlohr Bueso , Leo Yan , "linux-kernel@vger.kernel.org" , Brian Robbins , Tom McDonald , John Salem Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 27, 2019 at 6:53 PM Steve MacLean wrote: > > Specification claims latest version of jitdump file format is 2. Current > jit dump reading code treats 1 as the latest version. > > Correct spec to match code. > > The original language made it unclear the value to be written in the magic > field. > > Revise language that the writer always writes the same value. Specify that > the reader uses the value to detect endian mismatches. > > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: Arnaldo Carvalho de Melo > Cc: Mark Rutland > Cc: Alexander Shishkin > Cc: Jiri Olsa > Cc: Namhyung Kim > Cc: Stephane Eranian > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Steve MacLean Corrections are valid. Acked-by: Stephane Eranian > --- > tools/perf/Documentation/jitdump-specification.txt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/perf/Documentation/jitdump-specification.txt b/tools/perf/Documentation/jitdump-specification.txt > index 4c62b07..52152d1 100644 > --- a/tools/perf/Documentation/jitdump-specification.txt > +++ b/tools/perf/Documentation/jitdump-specification.txt > @@ -36,8 +36,8 @@ III/ Jitdump file header format > Each jitdump file starts with a fixed size header containing the following fields in order: > > > -* uint32_t magic : a magic number tagging the file type. The value is 4-byte long and represents the string "JiTD" in ASCII form. It is 0x4A695444 or 0x4454694a depending on the endianness. The field can be used to detect the endianness of the file > -* uint32_t version : a 4-byte value representing the format version. It is currently set to 2 > +* uint32_t magic : a magic number tagging the file type. The value is 4-byte long and represents the string "JiTD" in ASCII form. It written is as 0x4A695444. The reader will detect an endian mismatch when it reads 0x4454694a. > +* uint32_t version : a 4-byte value representing the format version. It is currently set to 1 > * uint32_t total_size: size in bytes of file header > * uint32_t elf_mach : ELF architecture encoding (ELF e_machine value as specified in /usr/include/elf.h) > * uint32_t pad1 : padding. Reserved for future use > -- > 2.7.4 >