aboutsummaryrefslogtreecommitdiff
path: root/daemon/opd_ibs_trans.h
blob: d01e3d9f1665a940660b2d0b158efdca545e3944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
 * @file daemon/opd_ibs_trans.h
 * AMD Family10h Instruction Based Sampling (IBS) translation.
 *
 * @remark Copyright 2008 OProfile authors
 * @remark Read the file COPYING
 *
 * @author Jason Yeh <jason.yeh@amd.com>
 * @author Paul Drongowski <paul.drongowski@amd.com>
 * @author Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
 * Copyright (c) 2008 Advanced Micro Devices, Inc.
 */

#ifndef OPD_IBS_TRANS_H
#define OPD_IBS_TRANS_H

struct ibs_fetch_sample;
struct ibs_op_sample;
struct transient;

struct ibs_translation_table {
	unsigned int event;
	void (*translator)(struct transient *);
};


extern void trans_ibs_fetch (struct transient * trans, unsigned int selected_flag, unsigned int size);
extern void trans_ibs_op (struct transient * trans, unsigned int selected_flag, unsigned int size);
extern void trans_ibs_op_ls (struct transient * trans, unsigned int selected_flag, unsigned int size);
extern void trans_ibs_op_nb (struct transient * trans, unsigned int selected_flag, unsigned int size);
#endif // OPD_IBS_TRANS_H