Lines Matching refs:buf_b
4240 static unsigned char *adj_for_padding(unsigned char *buf_b, in adj_for_padding() argument
4243 unsigned char *p = buf_b - MAX_PADDING; in adj_for_padding()
4276 unsigned char *buf_b, in intel_pt_find_overlap_tsc() argument
4286 return buf_b; /* No PSB in buf_a => no overlap */ in intel_pt_find_overlap_tsc()
4294 return buf_b; /* No full PSB+ => assume no overlap */ in intel_pt_find_overlap_tsc()
4297 return buf_b; /* No TSC in buf_a => assume no overlap */ in intel_pt_find_overlap_tsc()
4302 if (intel_pt_next_tsc(buf_b, len_b, &tsc_b, &rem_b)) { in intel_pt_find_overlap_tsc()
4310 start = buf_b + len_b - (rem_b - rem_a); in intel_pt_find_overlap_tsc()
4314 return buf_b; /* tsc_a < tsc_b => no overlap */ in intel_pt_find_overlap_tsc()
4317 if (!intel_pt_step_psb(&buf_b, &len_b)) in intel_pt_find_overlap_tsc()
4318 return buf_b + len_b; /* No PSB in buf_b => no data */ in intel_pt_find_overlap_tsc()
4341 unsigned char *buf_b, size_t len_b, in intel_pt_find_overlap() argument
4348 if (!intel_pt_next_psb(&buf_b, &len_b)) in intel_pt_find_overlap()
4349 return buf_b + len_b; /* No PSB */ in intel_pt_find_overlap()
4352 return buf_b; /* No overlap */ in intel_pt_find_overlap()
4355 found = intel_pt_find_overlap_tsc(buf_a, len_a, buf_b, len_b, in intel_pt_find_overlap()
4367 return buf_b; /* No overlap */ in intel_pt_find_overlap()
4373 found = memmem(buf_a, len_a, buf_b, len_a); in intel_pt_find_overlap()
4376 return adj_for_padding(buf_b + len_a, buf_a, len_a); in intel_pt_find_overlap()
4381 return buf_b; /* No overlap */ in intel_pt_find_overlap()