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: <20200720162241.GU10769@hirez.programming.kicks-ass.net>
Date:   Mon, 20 Jul 2020 18:22:41 +0200
From:   Peter Zijlstra <peterz@...radead.org>
To:     kan.liang@...ux.intel.com
Cc:     acme@...hat.com, mingo@...nel.org, linux-kernel@...r.kernel.org,
        jolsa@...nel.org, eranian@...gle.com,
        alexander.shishkin@...ux.intel.com, ak@...ux.intel.com
Subject: Re: [PATCH V6 06/14] perf/x86/intel: Use switch in
 intel_pmu_disable/enable_event

On Fri, Jul 17, 2020 at 07:05:46AM -0700, kan.liang@...ux.intel.com wrote:
> From: Kan Liang <kan.liang@...ux.intel.com>
> 
> Many items are checked in the intel_pmu_disable/enable_event. More items
> will be added later, e.g. perf metrics events.
> 
> Use switch, which is more efficient, to replace the if-else.

Perhaps explain how; does this actually generate a jump-table?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ