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]
Date:	Wed, 29 Nov 2006 19:54:55 +0100
From:	Peter Kjellstrom <cap@....liu.se>
To:	linux-kernel@...r.kernel.org
Cc:	trivial@...nel.org, levon@...ementarian.org
Subject: [PATCH 1/1] oprofile: add a warning for unsuppored CPUs

From: Peter Kjellstrom <cap@....liu.se>

Oprofile first tries to setup hardware counter based profiling. If this fails
it falls back to timer mode without any clues as to what went wrong. This
patch adds a warning when no supported CPU is found (typically too new CPU
and/or too old kernel).

Signed-off-by: Peter Kjellstrom <cap@....liu.se>

---

--- a/arch/i386/oprofile/init.c
+++ b/arch/i386/oprofile/init.c
@@ -29,6 +29,8 @@ int __init oprofile_arch_init(struct opr

 #ifdef CONFIG_X86_LOCAL_APIC
        ret = op_nmi_init(ops);
+       if (ret == -ENODEV)
+               printk(KERN_INFO "oprofile: hardware counters unavailable, unknown cpu.\n");
 #endif
 #ifdef CONFIG_X86_IO_APIC
        if (ret < 0)
-
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