Lines Matching refs:arg
44 pfm_default_smpl_arg_t *arg = (pfm_default_smpl_arg_t*)data; in default_validate() local
57 if (arg->buf_size < PFM_DEFAULT_SMPL_MIN_BUF_SIZE) return -EINVAL; in default_validate()
59 DPRINT(("buf_size=%lu\n", arg->buf_size)); in default_validate()
67 pfm_default_smpl_arg_t *arg = (pfm_default_smpl_arg_t *)data; in default_get_size() local
72 *size = arg->buf_size; in default_get_size()
81 pfm_default_smpl_arg_t *arg = (pfm_default_smpl_arg_t *)data; in default_init() local
86 hdr->hdr_buf_size = arg->buf_size; in default_init()
103 default_handler(struct task_struct *task, void *buf, pfm_ovfl_arg_t *arg, struct pt_regs *regs, uns… in default_handler() argument
113 if (unlikely(buf == NULL || arg == NULL|| regs == NULL || task == NULL)) { in default_handler()
114 DPRINT(("[%d] invalid arguments buf=%p arg=%p\n", task->pid, buf, arg)); in default_handler()
121 ovfl_pmd = arg->ovfl_pmd; in default_handler()
122 ovfl_notify = arg->ovfl_notify; in default_handler()
129 npmds = hweight64(arg->smpl_pmds[0]); in default_handler()
133 prefetch(arg->smpl_pmds_values); in default_handler()
162 ent->last_reset_val = arg->pmd_last_reset; //pmd[0].reg_last_reset_val; in default_handler()
171 ent->set = arg->active_set; in default_handler()
178 unsigned long *val = arg->smpl_pmds_values; in default_handler()
198 arg->ovfl_ctrl.bits.notify_user = 0; in default_handler()
199 arg->ovfl_ctrl.bits.block_task = 0; in default_handler()
200 arg->ovfl_ctrl.bits.mask_monitoring = 0; in default_handler()
201 arg->ovfl_ctrl.bits.reset_ovfl_pmds = 1; /* reset before returning from interrupt handler */ in default_handler()
217 arg->ovfl_ctrl.bits.notify_user = 0; in default_handler()
218 arg->ovfl_ctrl.bits.block_task = 0; in default_handler()
219 arg->ovfl_ctrl.bits.mask_monitoring = 1; in default_handler()
220 arg->ovfl_ctrl.bits.reset_ovfl_pmds = 0; in default_handler()
222 arg->ovfl_ctrl.bits.notify_user = 1; in default_handler()
223 arg->ovfl_ctrl.bits.block_task = 1; /* ignored for non-blocking context */ in default_handler()
224 arg->ovfl_ctrl.bits.mask_monitoring = 1; in default_handler()
225 arg->ovfl_ctrl.bits.reset_ovfl_pmds = 0; /* no reset now */ in default_handler()