Lines Matching defs:pfm_context
284 typedef struct pfm_context { struct
287 pfm_context_flags_t ctx_flags; /* bitmask of flags (block reason incl.) */ argument
288 unsigned int ctx_state; /* state: active/inactive (no bitfield) */
290 struct task_struct *ctx_task; /* task to which context is attached */
292 unsigned long ctx_ovfl_regs[4]; /* which registers overflowed (notification) */
294 struct completion ctx_restart_done; /* use for blocking notification mode */
296 unsigned long ctx_used_pmds[4]; /* bitmask of PMD used */
297 unsigned long ctx_all_pmds[4]; /* bitmask of all accessible PMDs */
298 unsigned long ctx_reload_pmds[4]; /* bitmask of force reload PMD on ctxsw in */
300 unsigned long ctx_all_pmcs[4]; /* bitmask of all accessible PMCs */
301 unsigned long ctx_reload_pmcs[4]; /* bitmask of force reload PMC on ctxsw in */
302 unsigned long ctx_used_monitors[4]; /* bitmask of monitor PMC being used */
304 unsigned long ctx_pmcs[PFM_NUM_PMC_REGS]; /* saved copies of PMC values */
306 unsigned int ctx_used_ibrs[1]; /* bitmask of used IBR (speedup ctxsw in) */
307 unsigned int ctx_used_dbrs[1]; /* bitmask of used DBR (speedup ctxsw in) */
308 unsigned long ctx_dbrs[IA64_NUM_DBG_REGS]; /* DBR values (cache) when not loaded */
309 unsigned long ctx_ibrs[IA64_NUM_DBG_REGS]; /* IBR values (cache) when not loaded */
311 pfm_counter_t ctx_pmds[PFM_NUM_PMD_REGS]; /* software state for PMDS */
313 unsigned long th_pmcs[PFM_NUM_PMC_REGS]; /* PMC thread save state */
337 } pfm_context_t; argument
345 #define PFM_GET_CTX(t) ((pfm_context_t *)(t)->thread.pfm_context) argument