Home | History | Annotate | Download | only in daemon
      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 (at) amd.com>
      9  * @author Paul Drongowski <paul.drongowski (at) amd.com>
     10  * @author Suravee Suthikulpanit <suravee.suthikulpanit (at) 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);
     28 extern void trans_ibs_op (struct transient * trans, unsigned int selected_flag);
     29 extern void trans_ibs_op_ls (struct transient * trans, unsigned int selected_flag);
     30 extern void trans_ibs_op_nb (struct transient * trans, unsigned int selected_flag);
     31 extern int  trans_ibs_op_rip_invalid (struct transient * trans);
     32 extern void trans_ibs_op_mask_reserved (unsigned int family, struct transient * trans);
     33 extern void trans_ibs_op_ls_memaccess(struct transient * trans);
     34 extern void trans_ibs_op_bta (struct transient * trans);
     35 #endif // OPD_IBS_TRANS_H
     36