Searched refs:sysctl_path (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | test_sysctl.c | 1435 const char *sysctl_path) in load_sysctl_prog_insns() argument 1448 fd = open(sysctl_path, O_RDONLY | O_CLOEXEC); in load_sysctl_prog_insns() 1450 log_err("open(%s) failed", sysctl_path); in load_sysctl_prog_insns() 1455 log_err("read(%s) failed", sysctl_path); in load_sysctl_prog_insns() 1491 static int load_sysctl_prog(struct sysctl_test *test, const char *sysctl_path) in load_sysctl_prog() argument 1495 : load_sysctl_prog_insns(test, sysctl_path); in load_sysctl_prog() 1498 static int access_sysctl(const char *sysctl_path, in access_sysctl() argument 1504 fd = open(sysctl_path, test->open_flags | O_CLOEXEC); in access_sysctl() 1546 char sysctl_path[128]; in run_test_case() local 1552 snprintf(sysctl_path, sizeof(sysctl_path), "/proc/sys/%s", in run_test_case() [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | unpriv_bpf_disabled.c | 39 static int sysctl_set(const char *sysctl_path, char *old_val, const char *new_val) in sysctl_set() argument 44 fp = fopen(sysctl_path, "r+"); in sysctl_set()
|