Lines Matching refs:ref_buf
44 void *ref_buf; member
944 zfree(&ptr->snapshot_refs[i].ref_buf); in intel_pt_free_snapshot_refs()
961 void *ref_buf; in intel_pt_alloc_snapshot_ref() local
963 ref_buf = zalloc(ref_buf_size); in intel_pt_alloc_snapshot_ref()
964 if (!ref_buf) in intel_pt_alloc_snapshot_ref()
967 ptr->snapshot_refs[idx].ref_buf = ref_buf; in intel_pt_alloc_snapshot_ref()
1042 static bool intel_pt_compare_ref(void *ref_buf, size_t ref_offset, in intel_pt_compare_ref() argument
1055 return intel_pt_compare_buffers(ref_buf, ref_size, data, ref_offset, in intel_pt_compare_ref()
1059 static void intel_pt_copy_ref(void *ref_buf, size_t ref_size, size_t buf_size, in intel_pt_copy_ref() argument
1063 memcpy(ref_buf, data + head - ref_size, ref_size); in intel_pt_copy_ref()
1065 memcpy(ref_buf, data, head); in intel_pt_copy_ref()
1067 memcpy(ref_buf + head, data + buf_size - ref_size, ref_size); in intel_pt_copy_ref()
1078 wrapped = intel_pt_compare_ref(ref->ref_buf, ref->ref_offset, in intel_pt_wrapped()
1082 intel_pt_copy_ref(ref->ref_buf, ptr->snapshot_ref_buf_size, mm->len, in intel_pt_wrapped()
1128 if (!ptr->snapshot_refs[idx].ref_buf) { in intel_pt_find_snapshot()