opd_ibs_trans.h revision 84862f9f1c18e2906bd17871ed0970751de7eeae
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 17struct ibs_fetch_sample; 18struct ibs_op_sample; 19struct transient; 20 21struct ibs_translation_table { 22 unsigned int event; 23 void (*translator)(struct transient *); 24}; 25 26 27extern void trans_ibs_fetch (struct transient * trans, unsigned int selected_flag, unsigned int size); 28extern void trans_ibs_op (struct transient * trans, unsigned int selected_flag, unsigned int size); 29extern void trans_ibs_op_ls (struct transient * trans, unsigned int selected_flag, unsigned int size); 30extern void trans_ibs_op_nb (struct transient * trans, unsigned int selected_flag, unsigned int size); 31#endif // OPD_IBS_TRANS_H 32