• Home
  • Raw
  • Download

Lines Matching refs:res

72 		   const char *define_name, bool res, const char *define_prefix)  in print_bool_feature()  argument
75 jsonw_bool_field(json_wtr, feat_name, res); in print_bool_feature()
78 res ? "" : "NO_", define_name); in print_bool_feature()
80 printf("%s is %savailable\n", plain_name, res ? "" : "NOT "); in print_bool_feature()
87 int res; in print_kernel_option() local
95 res = strtol(value, &endptr, 0); in print_kernel_option()
97 jsonw_int_field(json_wtr, name, res); in print_kernel_option()
143 long res; in read_procfs() local
149 res = getline(&line, &len, fd); in read_procfs()
151 if (res < 0) in read_procfs()
155 res = strtol(line, &endptr, 10); in read_procfs()
157 res = -1; in read_procfs()
160 return res; in read_procfs()
165 long res; in probe_unprivileged_disabled() local
169 res = read_procfs("/proc/sys/kernel/unprivileged_bpf_disabled"); in probe_unprivileged_disabled()
171 jsonw_int_field(json_wtr, "unprivileged_bpf_disabled", res); in probe_unprivileged_disabled()
173 switch (res) { in probe_unprivileged_disabled()
184 printf("bpf() syscall restriction has unknown value %ld\n", res); in probe_unprivileged_disabled()
191 long res; in probe_jit_enable() local
195 res = read_procfs("/proc/sys/net/core/bpf_jit_enable"); in probe_jit_enable()
197 jsonw_int_field(json_wtr, "bpf_jit_enable", res); in probe_jit_enable()
199 switch (res) { in probe_jit_enable()
214 res); in probe_jit_enable()
221 long res; in probe_jit_harden() local
225 res = read_procfs("/proc/sys/net/core/bpf_jit_harden"); in probe_jit_harden()
227 jsonw_int_field(json_wtr, "bpf_jit_harden", res); in probe_jit_harden()
229 switch (res) { in probe_jit_harden()
244 res); in probe_jit_harden()
251 long res; in probe_jit_kallsyms() local
255 res = read_procfs("/proc/sys/net/core/bpf_jit_kallsyms"); in probe_jit_kallsyms()
257 jsonw_int_field(json_wtr, "bpf_jit_kallsyms", res); in probe_jit_kallsyms()
259 switch (res) { in probe_jit_kallsyms()
270 printf("JIT kallsyms exports status has unknown value %ld\n", res); in probe_jit_kallsyms()
277 long res; in probe_jit_limit() local
281 res = read_procfs("/proc/sys/net/core/bpf_jit_limit"); in probe_jit_limit()
283 jsonw_int_field(json_wtr, "bpf_jit_limit", res); in probe_jit_limit()
285 switch (res) { in probe_jit_limit()
290 printf("Global memory limit for JIT compiler for unprivileged users is %ld bytes\n", res); in probe_jit_limit()
468 bool res; in probe_bpf_syscall() local
471 res = (errno != ENOSYS); in probe_bpf_syscall()
476 res, define_prefix); in probe_bpf_syscall()
478 return res; in probe_bpf_syscall()
488 bool res; in probe_prog_type() local
500 res = bpf_probe_prog_type(prog_type, ifindex); in probe_prog_type()
506 res = false; in probe_prog_type()
509 supported_types[prog_type] |= res; in probe_prog_type()
525 print_bool_feature(feat_name, plain_desc, define_name, res, in probe_prog_type()
536 bool res; in probe_map_type() local
538 res = bpf_probe_map_type(map_type, ifindex); in probe_map_type()
558 print_bool_feature(feat_name, plain_desc, define_name, res, in probe_map_type()
567 bool res = false; in probe_helper_for_progtype() local
570 res = bpf_probe_helper(id, prog_type, ifindex); in probe_helper_for_progtype()
577 res = false; in probe_helper_for_progtype()
582 if (res) in probe_helper_for_progtype()
587 res ? "1" : "0"); in probe_helper_for_progtype()
589 if (res) in probe_helper_for_progtype()
647 bool res; in probe_large_insn_limit() local
649 res = bpf_probe_large_insn_limit(ifindex); in probe_large_insn_limit()
653 res, define_prefix); in probe_large_insn_limit()
687 bool res; in section_syscall_config() local
693 res = probe_bpf_syscall(define_prefix); in section_syscall_config()
696 return res; in section_syscall_config()
797 int res = -1; in handle_perms() local
839 res = 0; in handle_perms()
873 res = 0; in handle_perms()
876 if (cap_free(caps) && !res) { in handle_perms()
879 res = -1; in handle_perms()
882 return res; in handle_perms()