Home
last modified time | relevance | path

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

/third_party/libbpf/src/
Dlibbpf.c7306 size_t patch_sz = strlen(patch); local
7308 if (patch_sz != orig_sz) {
7321 if (patch_sz > orig_sz) {
7322 if (orig + patch_sz >= buf + buf_sz) {
7324 patch_sz -= (orig + patch_sz) - (buf + buf_sz) + 1;
7326 } else if (patch_sz - orig_sz > buf_sz - log_sz) {
7328 rem_sz -= (patch_sz - orig_sz) - (buf_sz - log_sz);
7332 memmove(orig + patch_sz, orig + orig_sz, rem_sz);
7335 memcpy(orig, patch, patch_sz);