Lines Matching refs:ref_buf
45 void *ref_buf; member
949 zfree(&ptr->snapshot_refs[i].ref_buf); in intel_pt_free_snapshot_refs()
966 void *ref_buf; in intel_pt_alloc_snapshot_ref() local
968 ref_buf = zalloc(ref_buf_size); in intel_pt_alloc_snapshot_ref()
969 if (!ref_buf) in intel_pt_alloc_snapshot_ref()
972 ptr->snapshot_refs[idx].ref_buf = ref_buf; in intel_pt_alloc_snapshot_ref()
1047 static bool intel_pt_compare_ref(void *ref_buf, size_t ref_offset, in intel_pt_compare_ref() argument
1060 return intel_pt_compare_buffers(ref_buf, ref_size, data, ref_offset, in intel_pt_compare_ref()
1064 static void intel_pt_copy_ref(void *ref_buf, size_t ref_size, size_t buf_size, in intel_pt_copy_ref() argument
1068 memcpy(ref_buf, data + head - ref_size, ref_size); in intel_pt_copy_ref()
1070 memcpy(ref_buf, data, head); in intel_pt_copy_ref()
1072 memcpy(ref_buf + head, data + buf_size - ref_size, ref_size); in intel_pt_copy_ref()
1083 wrapped = intel_pt_compare_ref(ref->ref_buf, ref->ref_offset, in intel_pt_wrapped()
1087 intel_pt_copy_ref(ref->ref_buf, ptr->snapshot_ref_buf_size, mm->len, in intel_pt_wrapped()
1133 if (!ptr->snapshot_refs[idx].ref_buf) { in intel_pt_find_snapshot()