Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/progs/
Dtest_d_path.c7 #define MAX_PATH_LEN 128 macro
13 char paths_stat[MAX_FILES][MAX_PATH_LEN] = {};
14 char paths_close[MAX_FILES][MAX_PATH_LEN] = {};
36 ret = bpf_d_path(path, paths_stat[cnt], MAX_PATH_LEN); in BPF_PROG()
58 paths_close[cnt], MAX_PATH_LEN); in BPF_PROG()
/tools/testing/selftests/bpf/prog_tests/
Dd_path.c8 #define MAX_PATH_LEN 128 macro
17 char paths[MAX_FILES][MAX_PATH_LEN];
22 char buf[MAX_PATH_LEN]; in set_pathname()
24 snprintf(buf, MAX_PATH_LEN, "/proc/%d/fd/%d", pid, fd); in set_pathname()
25 return readlink(buf, src.paths[src.cnt++], MAX_PATH_LEN); in set_pathname()
134 CHECK(strncmp(src.paths[i], bss->paths_stat[i], MAX_PATH_LEN), in test_d_path()
138 CHECK(strncmp(src.paths[i], bss->paths_close[i], MAX_PATH_LEN), in test_d_path()