00001 /** 00002 * @file daemon/opd_ibs_trans.h 00003 * AMD Family10h Instruction Based Sampling (IBS) translation. 00004 * 00005 * @remark Copyright 2008 OProfile authors 00006 * @remark Read the file COPYING 00007 * 00008 * @author Jason Yeh <jason.yeh@amd.com> 00009 * @author Paul Drongowski <paul.drongowski@amd.com> 00010 * @author Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> 00011 * Copyright (c) 2008 Advanced Micro Devices, Inc. 00012 */ 00013 00014 #ifndef OPD_IBS_TRANS_H 00015 #define OPD_IBS_TRANS_H 00016 00017 struct ibs_fetch_sample; 00018 struct ibs_op_sample; 00019 struct transient; 00020 00021 struct ibs_translation_table { 00022 unsigned int event; 00023 void (*translator)(struct transient *); 00024 }; 00025 00026 00027 extern void trans_ibs_fetch (struct transient * trans, unsigned int selected_flag); 00028 extern void trans_ibs_op (struct transient * trans, unsigned int selected_flag); 00029 extern void trans_ibs_op_ls (struct transient * trans, unsigned int selected_flag); 00030 extern void trans_ibs_op_nb (struct transient * trans, unsigned int selected_flag); 00031 extern int trans_ibs_op_rip_invalid (struct transient * trans); 00032 extern void trans_ibs_op_mask_reserved (unsigned int family, struct transient * trans); 00033 extern void trans_ibs_op_ls_memaccess(struct transient * trans); 00034 extern void trans_ibs_op_bta (struct transient * trans); 00035 #endif // OPD_IBS_TRANS_H
1.6.1