Lines Matching refs:attr

339 		if (find_slot_idx(iter->attr.bp_type) != type)  in task_bp_pinned()
601 int ret = __reserve_bp_slot(bp, bp->attr.bp_type); in reserve_bp_slot()
621 __release_bp_slot(bp, bp->attr.bp_type); in release_bp_slot()
670 ret = __reserve_bp_slot(bp, bp->attr.bp_type); in dbg_reserve_bp_slot()
683 __release_bp_slot(bp, bp->attr.bp_type); in dbg_release_bp_slot()
690 const struct perf_event_attr *attr, in hw_breakpoint_parse() argument
695 err = hw_breakpoint_arch_parse(bp, attr, hw); in hw_breakpoint_parse()
700 if (attr->exclude_kernel) in hw_breakpoint_parse()
722 err = hw_breakpoint_parse(bp, &bp->attr, &hw); in register_perf_hw_breakpoint()
741 register_user_hw_breakpoint(struct perf_event_attr *attr, in register_user_hw_breakpoint() argument
746 return perf_event_create_kernel_counter(attr, -1, tsk, triggered, in register_user_hw_breakpoint()
761 modify_user_hw_breakpoint_check(struct perf_event *bp, struct perf_event_attr *attr, in modify_user_hw_breakpoint_check() argument
767 err = hw_breakpoint_parse(bp, attr, &hw); in modify_user_hw_breakpoint_check()
774 old_attr = bp->attr; in modify_user_hw_breakpoint_check()
775 hw_breakpoint_copy_attr(&old_attr, attr); in modify_user_hw_breakpoint_check()
776 if (memcmp(&old_attr, attr, sizeof(*attr))) in modify_user_hw_breakpoint_check()
780 if (bp->attr.bp_type != attr->bp_type) { in modify_user_hw_breakpoint_check()
781 err = modify_bp_slot(bp, bp->attr.bp_type, attr->bp_type); in modify_user_hw_breakpoint_check()
786 hw_breakpoint_copy_attr(&bp->attr, attr); in modify_user_hw_breakpoint_check()
797 int modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr) in modify_user_hw_breakpoint() argument
812 err = modify_user_hw_breakpoint_check(bp, attr, false); in modify_user_hw_breakpoint()
814 if (!bp->attr.disabled) in modify_user_hw_breakpoint()
842 register_wide_hw_breakpoint(struct perf_event_attr *attr, in register_wide_hw_breakpoint() argument
856 bp = perf_event_create_kernel_counter(attr, cpu, NULL, in register_wide_hw_breakpoint()
949 if (bp->attr.type != PERF_TYPE_BREAKPOINT) in hw_breakpoint_event_init()
956 if (!hw_breakpoint_slots_cached(find_slot_idx(bp->attr.bp_type)) || has_branch_stack(bp)) in hw_breakpoint_event_init()