From: "Martin Storsjö" <martin@martin.st>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH v2] tests/checkasm: add exclude_guest for non-x86 linux perf
Date: Wed, 10 Apr 2024 12:18:18 +0300 (EEST)
Message-ID: <4112ae65-41b1-63d7-2e32-434c1049ec@martin.st> (raw)
In-Reply-To: <20240410084458.152389-1-jdek@itanimul.li>
On Wed, 10 Apr 2024, J. Dekker wrote:
> The exclude_guest option only has an effect on x86. Omitting
> 'exclude_guest' defaults to zero which implies that you can count guest
> events should you run one. Some non-x86 kernels just ignore it, while
> others (e.g. the Asahi Linux kernels) require the user to explicitly set
> the option to 1, i.e. the only behaviour that makes sense when counting
> guest events isn't supported.
>
> Signed-off-by: J. Dekker <jdek@itanimul.li>
> ---
>
> Made commit message clearer, no functional change since v1.
>
> tests/checkasm/checkasm.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c
> index dcd2fd6957..8be6cb0f55 100644
> --- a/tests/checkasm/checkasm.c
> +++ b/tests/checkasm/checkasm.c
> @@ -742,6 +742,9 @@ static int bench_init_linux(void)
> .disabled = 1, // start counting only on demand
> .exclude_kernel = 1,
> .exclude_hv = 1,
> +#if !ARCH_X86
> + .exclude_guest = 1,
> +#endif
> };
>
> printf("benchmarking with Linux Perf Monitoring API\n");
> --
> 2.44.0
Thanks, the updated commit message feels more readable to me at least.
I'm not familiar with the perf API, but I tested perf on an aarch64
machine where perf benchmarking previously worked, and it still works
after this change, so it seems ok.
// Martin
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2024-04-10 9:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-10 8:44 J. Dekker
2024-04-10 9:18 ` Martin Storsjö [this message]
2024-04-10 11:38 ` J. Dekker
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=4112ae65-41b1-63d7-2e32-434c1049ec@martin.st \
--to=martin@martin.st \
--cc=ffmpeg-devel@ffmpeg.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
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git