Lines Matching refs:attr
90 if (bp->attr.bp_type & HW_BREAKPOINT_RW) in find_slot_idx()
291 if (bp->attr.bp_type == HW_BREAKPOINT_EMPTY || in __reserve_bp_slot()
292 bp->attr.bp_type == HW_BREAKPOINT_INVALID) in __reserve_bp_slot()
379 if (bp->attr.exclude_kernel) in validate_hw_breakpoint()
416 register_user_hw_breakpoint(struct perf_event_attr *attr, in register_user_hw_breakpoint() argument
421 return perf_event_create_kernel_counter(attr, -1, tsk, triggered, in register_user_hw_breakpoint()
433 int modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr) in modify_user_hw_breakpoint() argument
435 u64 old_addr = bp->attr.bp_addr; in modify_user_hw_breakpoint()
436 u64 old_len = bp->attr.bp_len; in modify_user_hw_breakpoint()
437 int old_type = bp->attr.bp_type; in modify_user_hw_breakpoint()
451 bp->attr.bp_addr = attr->bp_addr; in modify_user_hw_breakpoint()
452 bp->attr.bp_type = attr->bp_type; in modify_user_hw_breakpoint()
453 bp->attr.bp_len = attr->bp_len; in modify_user_hw_breakpoint()
455 if (attr->disabled) in modify_user_hw_breakpoint()
463 bp->attr.bp_addr = old_addr; in modify_user_hw_breakpoint()
464 bp->attr.bp_type = old_type; in modify_user_hw_breakpoint()
465 bp->attr.bp_len = old_len; in modify_user_hw_breakpoint()
466 if (!bp->attr.disabled) in modify_user_hw_breakpoint()
473 bp->attr.disabled = attr->disabled; in modify_user_hw_breakpoint()
499 register_wide_hw_breakpoint(struct perf_event_attr *attr, in register_wide_hw_breakpoint() argument
513 bp = perf_event_create_kernel_counter(attr, cpu, NULL, in register_wide_hw_breakpoint()
562 if (bp->attr.type != PERF_TYPE_BREAKPOINT) in hw_breakpoint_event_init()