Lines Matching refs:ref_buf
43 void *ref_buf; member
953 zfree(&ptr->snapshot_refs[i].ref_buf); in intel_pt_free_snapshot_refs()
970 void *ref_buf; in intel_pt_alloc_snapshot_ref() local
972 ref_buf = zalloc(ref_buf_size); in intel_pt_alloc_snapshot_ref()
973 if (!ref_buf) in intel_pt_alloc_snapshot_ref()
976 ptr->snapshot_refs[idx].ref_buf = ref_buf; in intel_pt_alloc_snapshot_ref()
1051 static bool intel_pt_compare_ref(void *ref_buf, size_t ref_offset, in intel_pt_compare_ref() argument
1064 return intel_pt_compare_buffers(ref_buf, ref_size, data, ref_offset, in intel_pt_compare_ref()
1068 static void intel_pt_copy_ref(void *ref_buf, size_t ref_size, size_t buf_size, in intel_pt_copy_ref() argument
1072 memcpy(ref_buf, data + head - ref_size, ref_size); in intel_pt_copy_ref()
1074 memcpy(ref_buf, data, head); in intel_pt_copy_ref()
1076 memcpy(ref_buf + head, data + buf_size - ref_size, ref_size); in intel_pt_copy_ref()
1087 wrapped = intel_pt_compare_ref(ref->ref_buf, ref->ref_offset, in intel_pt_wrapped()
1091 intel_pt_copy_ref(ref->ref_buf, ptr->snapshot_ref_buf_size, mm->len, in intel_pt_wrapped()
1137 if (!ptr->snapshot_refs[idx].ref_buf) { in intel_pt_find_snapshot()