Home
last modified time | relevance | path

Searched refs:cnum (Results 1 – 4 of 4) sorted by relevance

/arch/ia64/kernel/
Dperfmon_montecito.h9 static int pfm_mont_pmc_check(struct task_struct *task, pfm_context_t *ctx, unsigned int cnum, unsi…
135 pfm_mont_reserved(unsigned int cnum, unsigned long *val, struct pt_regs *regs) in pfm_mont_reserved() argument
140 tmp1 = ival & PMC_RSVD_MASK(cnum); in pfm_mont_reserved()
143 tmp2 = PMC_DFL_VAL(cnum) & ~PMC_RSVD_MASK(cnum); in pfm_mont_reserved()
148 cnum, ival, PMC_RSVD_MASK(cnum), PMC_DFL_VAL(cnum), *val)); in pfm_mont_reserved()
156 pfm_mont_pmc_check(struct task_struct *task, pfm_context_t *ctx, unsigned int cnum, unsigned long *… in pfm_mont_pmc_check() argument
165 pfm_mont_reserved(cnum, val, regs); in pfm_mont_pmc_check()
186 …DPRINT(("cnum=%u val=0x%lx, using_dbreg=%d loaded=%d\n", cnum, tmpval, ctx->ctx_fl_using_dbreg, is… in pfm_mont_pmc_check()
188 if (cnum == 41 && is_loaded in pfm_mont_pmc_check()
191 DPRINT(("pmc[%d]=0x%lx has active pmc41 settings, clearing dbr\n", cnum, tmpval)); in pfm_mont_pmc_check()
[all …]
Dperfmon_mckinley.h9 static int pfm_mck_pmc_check(struct task_struct *task, pfm_context_t *ctx, unsigned int cnum, unsig…
57 pfm_mck_reserved(unsigned int cnum, unsigned long *val, struct pt_regs *regs) in pfm_mck_reserved() argument
62 tmp1 = ival & PMC_RSVD_MASK(cnum); in pfm_mck_reserved()
65 tmp2 = PMC_DFL_VAL(cnum) & ~PMC_RSVD_MASK(cnum); in pfm_mck_reserved()
70 cnum, ival, PMC_RSVD_MASK(cnum), PMC_DFL_VAL(cnum), *val)); in pfm_mck_reserved()
78 pfm_mck_pmc_check(struct task_struct *task, pfm_context_t *ctx, unsigned int cnum, unsigned long *v… in pfm_mck_pmc_check() argument
85 pfm_mck_reserved(cnum, val, regs); in pfm_mck_pmc_check()
102 …DPRINT(("cnum=%u val=0x%lx, using_dbreg=%d loaded=%d\n", cnum, *val, ctx->ctx_fl_using_dbreg, is_l… in pfm_mck_pmc_check()
104 if (cnum == 13 && is_loaded in pfm_mck_pmc_check()
107 DPRINT(("pmc[%d]=0x%lx has active pmc13 settings, clearing dbr\n", cnum, *val)); in pfm_mck_pmc_check()
[all …]
Dperfmon.c390 typedef int (*pfm_reg_check_t)(struct task_struct *task, pfm_context_t *ctx, unsigned int cnum, uns…
403 #define PMC_PM(cnum, val) (((val) >> (pmu_conf->pmc_desc[cnum].pm_pos)) & 0x1) argument
2828 unsigned int cnum, reg_flags, flags, pmc_type; in pfm_write_pmcs() local
2859 cnum = req->reg_num; in pfm_write_pmcs()
2867 if (cnum >= PMU_MAX_PMCS) { in pfm_write_pmcs()
2868 DPRINT(("pmc%u is invalid\n", cnum)); in pfm_write_pmcs()
2872 pmc_type = pmu_conf->pmc_desc[cnum].type; in pfm_write_pmcs()
2873 pmc_pm = (value >> pmu_conf->pmc_desc[cnum].pm_pos) & 0x1; in pfm_write_pmcs()
2883 DPRINT(("pmc%u is unimplemented or no-access pmc_type=%x\n", cnum, pmc_type)); in pfm_write_pmcs()
2886 wr_func = pmu_conf->pmc_desc[cnum].write_check; in pfm_write_pmcs()
[all …]
Dperfmon_itanium.h9 static int pfm_ita_pmc_check(struct task_struct *task, pfm_context_t *ctx, unsigned int cnum, unsig…
52 pfm_ita_pmc_check(struct task_struct *task, pfm_context_t *ctx, unsigned int cnum, unsigned long *v… in pfm_ita_pmc_check() argument
66 if (cnum == 13 && is_loaded && ((*val & 0x1) == 0UL) && ctx->ctx_fl_using_dbreg == 0) { in pfm_ita_pmc_check()
68 DPRINT(("pmc[%d]=0x%lx has active pmc13.ta cleared, clearing ibr\n", cnum, *val)); in pfm_ita_pmc_check()
85 if (cnum == 11 && is_loaded && ((*val >> 28)& 0x1) == 0 && ctx->ctx_fl_using_dbreg == 0) { in pfm_ita_pmc_check()
87 DPRINT(("pmc[%d]=0x%lx has active pmc11.pt cleared, clearing dbr\n", cnum, *val)); in pfm_ita_pmc_check()