Ben Cheng | 5a4eb4e | 2009-09-14 16:00:41 -0700 | [diff] [blame^] | 1 | /** |
| 2 | * @file daemon/opd_ibs_trans.h |
| 3 | * AMD Family10h Instruction Based Sampling (IBS) translation. |
| 4 | * |
| 5 | * @remark Copyright 2008 OProfile authors |
| 6 | * @remark Read the file COPYING |
| 7 | * |
| 8 | * @author Jason Yeh <jason.yeh@amd.com> |
| 9 | * @author Paul Drongowski <paul.drongowski@amd.com> |
| 10 | * @author Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> |
| 11 | * Copyright (c) 2008 Advanced Micro Devices, Inc. |
| 12 | */ |
| 13 | |
| 14 | #ifndef OPD_IBS_TRANS_H |
| 15 | #define OPD_IBS_TRANS_H |
| 16 | |
| 17 | struct ibs_fetch_sample; |
| 18 | struct ibs_op_sample; |
| 19 | struct transient; |
| 20 | |
| 21 | struct ibs_translation_table { |
| 22 | unsigned int event; |
| 23 | void (*translator)(struct transient *); |
| 24 | }; |
| 25 | |
| 26 | |
| 27 | extern void trans_ibs_fetch (struct transient * trans, unsigned int selected_flag, unsigned int size); |
| 28 | extern void trans_ibs_op (struct transient * trans, unsigned int selected_flag, unsigned int size); |
| 29 | extern void trans_ibs_op_ls (struct transient * trans, unsigned int selected_flag, unsigned int size); |
| 30 | extern void trans_ibs_op_nb (struct transient * trans, unsigned int selected_flag, unsigned int size); |
| 31 | #endif // OPD_IBS_TRANS_H |