All pastes #261592 Raw Edit

Mine

public text v1 · immutable
#261592 ·published 2006-11-29 17:50 UTC
rendered paste body
--- a/arch/i386/oprofile/nmi_int.c
+++ b/arch/i386/oprofile/nmi_int.c
@@ -403,6 +403,7 @@ int __init op_nmi_init(struct oprofile_o

                        switch (family) {
                        default:
+                               printk(KERN_INFO "oprofile: hardware counters unavailable, unknow
                                return -ENODEV;
                        case 6:
                                model = &op_athlon_spec;
@@ -421,22 +422,28 @@ int __init op_nmi_init(struct oprofile_o
                        switch (family) {
                                /* Pentium IV */
                                case 0xf:
-                                       if (!p4_init(&cpu_type))
+                                       if (!p4_init(&cpu_type)) {
+                                               printk(KERN_INFO "oprofile: hardware counters una
                                                return -ENODEV;
+                                       }
                                        break;

                                /* A P6-class processor */
                                case 6:
-                                       if (!ppro_init(&cpu_type))
+                                       if (!ppro_init(&cpu_type)) {
+                                               printk(KERN_INFO "oprofile: hardware counters una
                                                return -ENODEV;
+                                       }
                                        break;

                                default:
+                                       printk(KERN_INFO "oprofile: hardware counters unavailable
                                        return -ENODEV;
                        }
                        break;

                default:
+                       printk(KERN_INFO "oprofile: hardware counters unavailable, unknown cpu.\n
                        return -ENODEV;
        }