Home
last modified time | relevance | path

Searched refs:patch_sz (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/tools/lib/bpf/
Dlibbpf.c7603 size_t patch_sz = strlen(patch); in patch_log() local
7605 if (patch_sz != orig_sz) { in patch_log()
7618 if (patch_sz > orig_sz) { in patch_log()
7619 if (orig + patch_sz >= buf + buf_sz) { in patch_log()
7621 patch_sz -= (orig + patch_sz) - (buf + buf_sz) + 1; in patch_log()
7623 } else if (patch_sz - orig_sz > buf_sz - log_sz) { in patch_log()
7625 rem_sz -= (patch_sz - orig_sz) - (buf_sz - log_sz); in patch_log()
7629 memmove(orig + patch_sz, orig + orig_sz, rem_sz); in patch_log()
7632 memcpy(orig, patch, patch_sz); in patch_log()