Lines Matching refs:ref_buf
43 void *ref_buf; member
959 zfree(&ptr->snapshot_refs[i].ref_buf); in intel_pt_free_snapshot_refs()
976 void *ref_buf; in intel_pt_alloc_snapshot_ref() local
978 ref_buf = zalloc(ref_buf_size); in intel_pt_alloc_snapshot_ref()
979 if (!ref_buf) in intel_pt_alloc_snapshot_ref()
982 ptr->snapshot_refs[idx].ref_buf = ref_buf; in intel_pt_alloc_snapshot_ref()
1057 static bool intel_pt_compare_ref(void *ref_buf, size_t ref_offset, in intel_pt_compare_ref() argument
1070 return intel_pt_compare_buffers(ref_buf, ref_size, data, ref_offset, in intel_pt_compare_ref()
1074 static void intel_pt_copy_ref(void *ref_buf, size_t ref_size, size_t buf_size, in intel_pt_copy_ref() argument
1078 memcpy(ref_buf, data + head - ref_size, ref_size); in intel_pt_copy_ref()
1080 memcpy(ref_buf, data, head); in intel_pt_copy_ref()
1082 memcpy(ref_buf + head, data + buf_size - ref_size, ref_size); in intel_pt_copy_ref()
1093 wrapped = intel_pt_compare_ref(ref->ref_buf, ref->ref_offset, in intel_pt_wrapped()
1097 intel_pt_copy_ref(ref->ref_buf, ptr->snapshot_ref_buf_size, mm->len, in intel_pt_wrapped()
1143 if (!ptr->snapshot_refs[idx].ref_buf) { in intel_pt_find_snapshot()