PAPI 7.1.0.0
Loading...
Searching...
No Matches
pfmlib_i386_p6_priv.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2005-2006 Hewlett-Packard Development Company, L.P.
3 * Contributed by Stephane Eranian <eranian@hpl.hp.com>
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the "Software"), to deal
7 * in the Software without restriction, including without limitation the rights
8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9 * of the Software, and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in all
13 * copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
16 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
17 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
19 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
20 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 *
22 * This file is part of libpfm, a performance monitoring support library for
23 * applications on Linux.
24 */
25#ifndef __PFMLIB_I386_P6_PRIV_H__
26#define __PFMLIB_I386_P6_PRIV_H__
27
28#define PFMLIB_I386_P6_MAX_UMASK 16
29
30typedef struct {
31 char *pme_uname; /* unit mask name */
32 char *pme_udesc; /* event/umask description */
33 unsigned int pme_ucode; /* unit mask code */
35
36typedef struct {
37 char *pme_name; /* event name */
38 char *pme_desc; /* event description */
39 pme_i386_p6_umask_t pme_umasks[PFMLIB_I386_P6_MAX_UMASK]; /* umask desc */
40 unsigned int pme_code; /* event code */
41 unsigned int pme_numasks; /* number of umasks */
42 unsigned int pme_flags; /* flags */
44
45/*
46 * pme_flags values
47 */
48#define PFMLIB_I386_P6_UMASK_COMBO 0x01 /* unit mask can be combined */
49#define PFMLIB_I386_P6_CTR0_ONLY 0x02 /* event can only be counted on counter 0 */
50#define PFMLIB_I386_P6_CTR1_ONLY 0x04 /* event can only be counted on counter 1 */
51
52#endif /* __PFMLIB_I386_P6_PRIV_H__ */
#define PFMLIB_I386_P6_MAX_UMASK
unsigned int pme_code
unsigned int pme_numasks
char * pme_name
char * pme_desc
unsigned int pme_flags