lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YfKZBQRpZAY/kMpn@hirez.programming.kicks-ass.net>
Date:   Thu, 27 Jan 2022 14:07:17 +0100
From:   Peter Zijlstra <peterz@...radead.org>
To:     Stephane Eranian <eranian@...gle.com>
Cc:     linux-kernel@...r.kernel.org, kim.phillips@....com,
        acme@...hat.com, jolsa@...hat.com, songliubraving@...com
Subject: Re: [PATCH v5 09/13] perf/x86/amd: add idle hooks for branch sampling

On Wed, Jan 26, 2022 at 03:34:50PM -0800, Stephane Eranian wrote:
> +static inline void perf_lopwr_cb(bool mode)
> +{
> +	/* key enabled only when BRS is available */
> +	if (static_branch_unlikely(&perf_lopwr_needed))
> +		perf_amd_brs_lopwr_cb(mode);
> +}

static_call() might be better at this point..

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ