diff options
author | Robert Richter <robert.richter@amd.com> | 2009-05-25 19:31:44 +0200 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2009-06-11 19:42:14 +0200 |
commit | ef8828ddf828174785421af67c281144d4b8e796 (patch) | |
tree | 28aef872bb6d3fd4455b508b73f81639a4fca1aa /arch/x86/oprofile/op_x86_model.h | |
parent | 9c59354b48ce9cf28048b02fea73dd0236f876ea (diff) | |
download | linux-ef8828ddf828174785421af67c281144d4b8e796.tar.gz linux-ef8828ddf828174785421af67c281144d4b8e796.tar.bz2 linux-ef8828ddf828174785421af67c281144d4b8e796.zip |
x86/oprofile: pass the model to setup_ctrs() functions
In follow-on patches the setup_ctrs() functions will need data that
describes the model. This patch extends the function argument list to
pass a pointer of the model to these function.
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/x86/oprofile/op_x86_model.h')
-rw-r--r-- | arch/x86/oprofile/op_x86_model.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/oprofile/op_x86_model.h b/arch/x86/oprofile/op_x86_model.h index a207b1c46e26..6161c7f0e7fb 100644 --- a/arch/x86/oprofile/op_x86_model.h +++ b/arch/x86/oprofile/op_x86_model.h @@ -48,7 +48,8 @@ struct op_x86_model_spec { int (*init)(struct oprofile_operations *ops); void (*exit)(void); void (*fill_in_addresses)(struct op_msrs * const msrs); - void (*setup_ctrs)(struct op_msrs const * const msrs); + void (*setup_ctrs)(struct op_x86_model_spec const *model, + struct op_msrs const * const msrs); int (*check_ctrs)(struct pt_regs * const regs, struct op_msrs const * const msrs); void (*start)(struct op_msrs const * const msrs); |