PAPI 7.1.0.0
Loading...
Searching...
No Matches
pfmlib_sicortex_priv.h
Go to the documentation of this file.
1/*
2 * Contributed by Philip Mucci <mucci@cs.utk.edu> based on code from
3 * Copyright (c) 2004-2006 Hewlett-Packard Development Company, L.P.
4 * Contributed by Stephane Eranian <eranian@hpl.hp.com>
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 * of the Software, and to permit persons to whom the Software is furnished to do so,
11 * subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in all
14 * copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
17 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
18 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
20 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
21 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 *
23 * This file is part of libpfm, a performance monitoring support library for
24 * applications on Linux/ia64.
25 */
26#ifndef __PFMLIB_SICORTEX_PRIV_H__
27#define __PFMLIB_SICORTEX_PRIV_H__
29
30#define PFMLIB_SICORTEX_MAX_UMASK 5
31
32typedef struct {
33 char *pme_uname; /* unit mask name */
34 char *pme_udesc; /* event/umask description */
35 unsigned int pme_ucode; /* unit mask code */
37
38typedef struct {
39 char *pme_name;
40 char *pme_desc; /* text description of the event */
41 unsigned int pme_code; /* event mask, holds room for four events, low 8 bits cntr0, ... high 8 bits cntr3 */
42 unsigned int pme_counters; /* Which counter event lives on */
43 unsigned int pme_numasks; /* number of umasks */
44 pme_sicortex_umask_t pme_umasks[PFMLIB_SICORTEX_MAX_UMASK]; /* umask desc */
46
48 {
49 "IFOTHER_NONE","Both buckets count independently",0x00
50 },
51 {
52 "IFOTHER_AND","Increment where this event counts and the opposite bucket counts",0x02
53 },
54 {
55 "IFOTHER_ANDNOT","Increment where this event counts and the opposite bucket does not",0x04
56 },
57 {
58 "HIST_NONE","Count cycles where the event is asserted",0x0
59 },
60 {
61 "HIST_EDGE","Histogram on edges of the specified event",0x1
62 }
63};
64#endif /* __PFMLIB_GEN_MIPS64_PRIV_H__ */
static pme_sicortex_umask_t sicortex_scb_umasks[PFMLIB_SICORTEX_MAX_UMASK]
#define PFMLIB_SICORTEX_MAX_UMASK
unsigned int pme_numasks
char * pme_name
unsigned int pme_code
char * pme_desc
unsigned int pme_counters