diff options
author | Robert Richter <robert.richter@amd.com> | 2009-07-10 15:47:17 +0200 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2009-07-20 16:43:21 +0200 |
commit | 61d149d5248ad7428801cdede0f5fcc2b90cd61c (patch) | |
tree | 7cfc04e6567cf34f2cba40f86287a51566d163ad /arch/x86/oprofile/op_x86_model.h | |
parent | oprofile: Adding switch counter to oprofile statistic variables (diff) | |
download | linux-61d149d5248ad7428801cdede0f5fcc2b90cd61c.tar.xz linux-61d149d5248ad7428801cdede0f5fcc2b90cd61c.zip |
x86/oprofile: Implement op_x86_virt_to_phys()
This patch implements a common x86 function to convert virtual counter
numbers to physical.
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/oprofile/op_x86_model.h b/arch/x86/oprofile/op_x86_model.h index 4e2e7c2c519f..b83776180c7f 100644 --- a/arch/x86/oprofile/op_x86_model.h +++ b/arch/x86/oprofile/op_x86_model.h @@ -60,6 +60,7 @@ struct op_counter_config; extern u64 op_x86_get_ctrl(struct op_x86_model_spec const *model, struct op_counter_config *counter_config); extern int op_x86_phys_to_virt(int phys); +extern int op_x86_virt_to_phys(int virt); extern struct op_x86_model_spec op_ppro_spec; extern struct op_x86_model_spec op_p4_spec; |