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>] [day] [month] [year] [list]
Message-ID: <20070601143429.GH24898@frankl.hpl.hp.com>
Date:	Fri, 1 Jun 2007 07:34:29 -0700
From:	Stephane Eranian <eranian@....hp.com>
To:	linux-kernel@...r.kernel.org
Cc:	Stephane Eranian <eranian@....hp.com>, ak@...e.de,
	akpm@...ux-foundation.org
Subject: [PATCH] i386 add cpu_has_arch_perfmon macro

Hello,

The following patch for i386 adds a macro to test for X86_FEATURE_ARCH_PERFMON.
An equivalent patch will follow for x86-64.

changelog:
	- add cpu_has_arch_perfmon macro to test for X86_FEATURE_ARCH_PERFMON

signed-off-by: stephane eranian <eranian@....hp.com>

diff -urNp --exclude=.git linux-2.6.22.orig/include/asm-i386/cpufeature.h linux-2.6.22.base/include/asm-i386/cpufeature.h
--- linux-2.6.22.orig/include/asm-i386/cpufeature.h	2007-05-30 04:02:26.000000000 -0700
+++ linux-2.6.22.base/include/asm-i386/cpufeature.h	2007-06-01 07:22:25.000000000 -0700
@@ -150,6 +150,7 @@
 #define cpu_has_pebs 		boot_cpu_has(X86_FEATURE_PEBS)
 #define cpu_has_clflush		boot_cpu_has(X86_FEATURE_CLFLSH)
 #define cpu_has_bts 		boot_cpu_has(X86_FEATURE_BTS)
+#define cpu_has_arch_perfmon	boot_cpu_has(X86_FEATURE_ARCH_PERFMON)
 
 #endif /* __ASM_I386_CPUFEATURE_H */
 
-- 

-Stephane
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ