24#ifndef __PFMLIB_MONTECITO_H__
25#define __PFMLIB_MONTECITO_H__
30#if BYTE_ORDER != LITTLE_ENDIAN
31#error "this file only supports little endian environments"
37#define PMU_MONT_FIRST_COUNTER 4
38#define PMU_MONT_NUM_COUNTERS 12
39#define PMU_MONT_NUM_PMCS 27
40#define PMU_MONT_NUM_PMDS 36
41#define PMU_MONT_NUM_ETB 16
42#define PMU_MONT_COUNTER_WIDTH 47
70 } pmc_mont_counter_reg;
89 unsigned long opcm_ig1:23;
126 } pmc37_mont_cache_reg;
129 unsigned long iear_plm:4;
130 unsigned long iear_pm:1;
131 unsigned long iear_umask:7;
132 unsigned long iear_ct:2;
133 unsigned long iear_res:50;
134 } pmc37_mont_tlb_reg;
215 } pmd_mont_counter_reg;
241 unsigned long iear_ig:51;
396 } pmd39_ipear_mont_reg;
409 } pmd48_63_etb_mont_reg;
423 } pmd48_63_ipear_mont_reg;
437 unsigned long ipear_addr:52;
438 unsigned long ipear_cycles:4;
439 } pmd48_63_ipear_ef_mont_reg;
451#define PFMLIB_MONT_FL_EVT_NO_QUALCHECK 0x1
452#define PFMLIB_MONT_FL_EVT_ALL_THRD 0x2
453#define PFMLIB_MONT_FL_EVT_ACTIVE_ONLY 0x4
454#define PFMLIB_MONT_FL_EVT_ALWAYS 0x8
560#define PFMLIB_MONT_RR_INV 0x1
561#define PFMLIB_MONT_RR_NO_FINE_MODE 0x2
562#define PFMLIB_MONT_IRR_DEMAND_FETCH 0x4
563#define PFMLIB_MONT_IRR_PREFETCH_MATCH 0x8
638#define PFMLIB_MONT_EVT_NO_GRP 0
639#define PFMLIB_MONT_EVT_L1D_CACHE_GRP 1
640#define PFMLIB_MONT_EVT_L2D_CACHE_GRP 2
645#define PFMLIB_MONT_EVT_NO_SET -1
650#define PFMLIB_MONT_EVT_ACTIVE 0
651#define PFMLIB_MONT_EVT_FLOATING 1
652#define PFMLIB_MONT_EVT_CAUSAL 2
653#define PFMLIB_MONT_EVT_SELF_FLOATING 3
int pfm_mont_irange_is_fine(pfmlib_output_param_t *outp, pfmlib_mont_output_param_t *mod_out)
int pfm_mont_is_iear_tlb(unsigned int i)
int pfm_mont_support_opcm(unsigned int i)
int pfm_mont_is_ear(unsigned int i)
int pfm_mont_is_dear_cache(unsigned int i)
int pfm_mont_get_event_umask(unsigned int i, unsigned long *umask)
int pfm_mont_get_event_set(unsigned int i, int *set)
int pfm_mont_is_dear_alat(unsigned int i)
#define PMU_MONT_NUM_COUNTERS
int pfm_mont_support_darr(unsigned int i)
int pfm_mont_get_event_maxincr(unsigned int i, unsigned int *maxincr)
int pfm_mont_get_ear_mode(unsigned int i, pfmlib_mont_ear_mode_t *m)
int pfm_mont_is_iear_cache(unsigned int i)
int pfm_mont_support_all(unsigned int i)
int pfm_mont_get_event_group(unsigned int i, int *grp)
@ PFMLIB_MONT_EAR_TLB_MODE
@ PFMLIB_MONT_EAR_CACHE_MODE
@ PFMLIB_MONT_EAR_ALAT_MODE
int pfm_mont_support_iarr(unsigned int i)
int pfm_mont_is_etb(unsigned int i)
int pfm_mont_is_dear(unsigned int i)
int pfm_mont_is_iear(unsigned int i)
int pfm_mont_get_event_type(unsigned int i, int *type)
int pfm_mont_is_dear_tlb(unsigned int i)
pfmlib_mont_ear_mode_t ear_mode
unsigned short ipear_delay
pfmlib_mont_output_rr_t pfp_mont_irange
pfmlib_mont_output_rr_t pfp_mont_drange
unsigned long iarc_ig_ibrp1
unsigned long darc_ena_dbrp0
unsigned long iarc_ig_ibrp0
unsigned long opcm_ch3_ig_opcm
unsigned long ipear_delay
unsigned long opcm_ch1_ig_opcm
unsigned long darc_cfg_dtag1
unsigned long darc_ena_dbrp2
unsigned long iarc_ig_ibrp3
unsigned long darc_ena_dbrp3
unsigned long darc_ena_dbrp1
unsigned long opcm_ch2_ig_opcm
unsigned long darc_cfg_dtag3
unsigned long iarc_ig_ibrp2
unsigned long opcm_ch0_ig_opcm
unsigned long darc_cfg_dtag0
unsigned long darc_cfg_dtag2
unsigned long ipear_pmd60ext_f
unsigned long etb_pmd58ext_res
unsigned long etb_pmd63ext_b1
unsigned long ipear_pmd54ext_cycles
unsigned long ipear_pmd52ext_ef
unsigned long ipear_pmd62ext_ef
unsigned long ipear_pmd63ext_cycles
unsigned long etb_pmd50ext_res
unsigned long etb_pmd54ext_res
unsigned long ipear_pmd52ext_cycles
unsigned long ipear_pmd62ext_f
unsigned long etb_pmd60ext_b1
unsigned long etb_pmd61ext_bruflush
unsigned long ipear_pmd53ext_ef
unsigned long etb_pmd59ext_bruflush
unsigned long etb_pmd52ext_b1
unsigned long ipear_pmd55ext_f
unsigned long etb_pmd48ext_b1
unsigned long ipear_pmd57ext_f
unsigned long ipear_pmd53ext_cycles
unsigned long etb_pmd51ext_bruflush
unsigned long etb_pmd53ext_bruflush
unsigned long ipear_pmd51ext_f
unsigned long etb_pmd49ext_bruflush
unsigned long etb_pmd48ext_res
unsigned long ipear_pmd61ext_ef
unsigned long ipear_pmd58ext_ef
unsigned long ipear_pmd59ext_cycles
unsigned long etb_pmd59ext_b1
unsigned long etb_pmd58ext_b1
unsigned long etb_pmd51ext_res
unsigned long etb_pmd60ext_bruflush
unsigned long ipear_cycles
unsigned long ipear_pmd61ext_cycles
unsigned long etb_pmd57ext_res
unsigned long etb_pmd62ext_bruflush
unsigned long ipear_pmd51ext_ef
unsigned long ipear_pmd50ext_cycles
unsigned long etb_pmd54ext_bruflush
unsigned long ipear_pmd63ext_f
unsigned long ipear_pmd52ext_f
unsigned long etb_pmd61ext_res
unsigned long etb_pmd53ext_b1
unsigned long etb_pmd56ext_b1
unsigned long ipear_pmd51ext_cycles
unsigned long etb_pmd51ext_b1
unsigned long ipear_pmd55ext_ef
unsigned long etb_pmd57ext_bruflush
unsigned long etb_pmd62ext_b1
unsigned long etb_pmd55ext_b1
unsigned long etb_pmd55ext_res
unsigned long etb_pmd54ext_b1
unsigned long etb_pmd63ext_bruflush
unsigned long etb_pmd50ext_b1
unsigned long ipear_pmd48ext_f
unsigned long ipear_pmd56ext_ef
unsigned long ipear_pmd61ext_f
unsigned long etb_pmd53ext_res
unsigned long etb_pmd50ext_bruflush
unsigned long etb_pmd49ext_res
unsigned long ipear_pmd58ext_cycles
unsigned long etb_pmd60ext_res
unsigned long ipear_pmd60ext_cycles
unsigned long ipear_pmd49ext_f
unsigned long etb_pmd57ext_b1
unsigned long iear_latency
unsigned long ipear_pmd50ext_f
unsigned long ipear_pmd58ext_f
unsigned long etb_pmd58ext_bruflush
unsigned long ipear_pmd59ext_f
unsigned long etb_pmd52ext_res
unsigned long ipear_pmd49ext_ef
unsigned long ipear_pmd48ext_ef
unsigned long etb_pmd63ext_res
unsigned long etb_pmd56ext_bruflush
unsigned long etb_pmd62ext_res
unsigned long ipear_pmd53ext_f
unsigned long dear_latency
unsigned long etb_pmd49ext_b1
unsigned long ipear_pmd63ext_ef
unsigned long etb_pmd59ext_res
unsigned long ipear_pmd60ext_ef
unsigned long ipear_pmd48ext_cycles
unsigned long ipear_pmd59ext_ef
unsigned long etb_pmd56ext_res
unsigned long ipear_pmd54ext_f
unsigned long ipear_pmd55ext_cycles
unsigned long ipear_pmd57ext_cycles
unsigned long ipear_pmd56ext_cycles
unsigned long ipear_delay
unsigned long etb_pmd52ext_bruflush
unsigned long etb_pmd48ext_bruflush
unsigned long ipear_pmd49ext_cycles
unsigned long ipear_pmd50ext_ef
unsigned long ipear_pmd54ext_ef
unsigned long etb_pmd55ext_bruflush
unsigned long ipear_pmd62ext_cycles
unsigned long ipear_pmd56ext_f
unsigned long etb_pmd61ext_b1
unsigned long ipear_pmd57ext_ef