From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Leo Yan <leo.yan@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Namhyung Kim <namhyung@kernel.org>, Jiri Olsa <jolsa@kernel.org>,
Adrian Hunter <adrian.hunter@intel.com>,
"Liang, Kan" <kan.liang@linux.intel.com>,
James Clark <james.clark@linaro.org>,
linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] perf docs: Refine the description for the buffer size
Date: Mon, 12 Aug 2024 10:30:44 -0300 [thread overview]
Message-ID: <ZroOhMIKF0OkmoaY@x1> (raw)
In-Reply-To: <20240812093459.2575278-1-leo.yan@arm.com>
On Mon, Aug 12, 2024 at 10:34:59AM +0100, Leo Yan wrote:
> Current description for the AUX trace buffer size is misleading. When a
> user specifies the option '-m,512M', it represents a size value in bytes
> (512MiB) but not 512M pages (512M x 4KiB regard to a page of 4KiB).
>
> Make the document clear that the normal buffer and the AUX tracing
> buffer share the same semantics. Syncs the documents for consistent
> text.
>
> Signed-off-by: Leo Yan <leo.yan@arm.com>
> Reviewed-by: James Clark <james.clark@linaro.org>
> ---
>
> Changes from v1:
> Synced for all documents for consistent description (James)
Thanks, applied to tmp.perf-tools-next,
- Arnaldo
> tools/perf/Documentation/perf-kvm.txt | 6 +++---
> tools/perf/Documentation/perf-record.txt | 9 +++++----
> tools/perf/Documentation/perf-top.txt | 4 ++--
> tools/perf/Documentation/perf-trace.txt | 4 ++--
> 4 files changed, 12 insertions(+), 11 deletions(-)
>
> diff --git a/tools/perf/Documentation/perf-kvm.txt b/tools/perf/Documentation/perf-kvm.txt
> index b66be66fe836..c26524d38f47 100644
> --- a/tools/perf/Documentation/perf-kvm.txt
> +++ b/tools/perf/Documentation/perf-kvm.txt
> @@ -115,9 +115,9 @@ STAT LIVE OPTIONS
>
> -m::
> --mmap-pages=::
> - Number of mmap data pages (must be a power of two) or size
> - specification with appended unit character - B/K/M/G. The
> - size is rounded up to have nearest pages power of two value.
> + Number of mmap data pages (must be a power of two) or size
> + specification in bytes with appended unit character - B/K/M/G.
> + The size is rounded up to the nearest power-of-two page value.
>
> -a::
> --all-cpus::
> diff --git a/tools/perf/Documentation/perf-record.txt b/tools/perf/Documentation/perf-record.txt
> index 41e36b4dc765..242223240a08 100644
> --- a/tools/perf/Documentation/perf-record.txt
> +++ b/tools/perf/Documentation/perf-record.txt
> @@ -273,10 +273,11 @@ OPTIONS
> -m::
> --mmap-pages=::
> Number of mmap data pages (must be a power of two) or size
> - specification with appended unit character - B/K/M/G. The
> - size is rounded up to have nearest pages power of two value.
> - Also, by adding a comma, the number of mmap pages for AUX
> - area tracing can be specified.
> + specification in bytes with appended unit character - B/K/M/G.
> + The size is rounded up to the nearest power-of-two page value.
> + By adding a comma, an additional parameter with the same
> + semantics used for the normal mmap areas can be specified for
> + AUX tracing area.
>
> -g::
> Enables call-graph (stack chain/backtrace) recording for both
> diff --git a/tools/perf/Documentation/perf-top.txt b/tools/perf/Documentation/perf-top.txt
> index 667e5102075e..af3e4230c72f 100644
> --- a/tools/perf/Documentation/perf-top.txt
> +++ b/tools/perf/Documentation/perf-top.txt
> @@ -83,8 +83,8 @@ Default is to monitor all CPUS.
> -m <pages>::
> --mmap-pages=<pages>::
> Number of mmap data pages (must be a power of two) or size
> - specification with appended unit character - B/K/M/G. The
> - size is rounded up to have nearest pages power of two value.
> + specification in bytes with appended unit character - B/K/M/G.
> + The size is rounded up to the nearest power-of-two page value.
>
> -p <pid>::
> --pid=<pid>::
> diff --git a/tools/perf/Documentation/perf-trace.txt b/tools/perf/Documentation/perf-trace.txt
> index f0da8cf63e9a..6e0cc50bbc13 100644
> --- a/tools/perf/Documentation/perf-trace.txt
> +++ b/tools/perf/Documentation/perf-trace.txt
> @@ -106,8 +106,8 @@ filter out the startup phase of the program, which is often very different.
> -m::
> --mmap-pages=::
> Number of mmap data pages (must be a power of two) or size
> - specification with appended unit character - B/K/M/G. The
> - size is rounded up to have nearest pages power of two value.
> + specification in bytes with appended unit character - B/K/M/G.
> + The size is rounded up to the nearest power-of-two page value.
>
> -C::
> --cpu::
> --
> 2.34.1
prev parent reply other threads:[~2024-08-12 13:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-12 9:34 [PATCH v2] perf docs: Refine the description for the buffer size Leo Yan
2024-08-12 13:30 ` Arnaldo Carvalho de Melo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZroOhMIKF0OkmoaY@x1 \
--to=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=james.clark@linaro.org \
--cc=jolsa@kernel.org \
--cc=kan.liang@linux.intel.com \
--cc=leo.yan@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox