]> git.karo-electronics.de Git - linux-beck.git/blobdiff - arch/x86/oprofile/op_x86_model.h
Merge branch 'x86/oprofile' into oprofile
[linux-beck.git] / arch / x86 / oprofile / op_x86_model.h
index abb1aa95b979f8dbc0fa65a90210d11409715f61..e07ba10763712a22d3c6d102ae81279ae0f176b3 100644 (file)
@@ -19,6 +19,7 @@ struct op_saved_msr {
 struct op_msr {
        unsigned long addr;
        struct op_saved_msr saved;
+       struct op_saved_msr multiplex;
 };
 
 struct op_msrs {
@@ -29,9 +30,13 @@ struct op_msrs {
 struct pt_regs;
 
 /* The model vtable abstracts the differences between
- * various x86 CPU model's perfctr support.
+ * various x86 CPU models' perfctr support.
  */
 struct op_x86_model_spec {
+       int (*init)(struct oprofile_operations *ops);
+       void (*exit)(void);
+       unsigned int const num_hardware_counters;
+       unsigned int const num_hardware_controls;
        unsigned int const num_counters;
        unsigned int const num_controls;
        void (*fill_in_addresses)(struct op_msrs * const msrs);
@@ -46,6 +51,6 @@ struct op_x86_model_spec {
 extern struct op_x86_model_spec const op_ppro_spec;
 extern struct op_x86_model_spec const op_p4_spec;
 extern struct op_x86_model_spec const op_p4_ht2_spec;
-extern struct op_x86_model_spec const op_athlon_spec;
+extern struct op_x86_model_spec const op_amd_spec;
 
 #endif /* OP_X86_MODEL_H */