/kernel/ |
D | sysctl-test.c | 119 struct ctl_table table = { in sysctl_test_api_dointvec_table_len_is_zero() local 136 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ, buffer, in sysctl_test_api_dointvec_table_len_is_zero() 140 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_WRITE, buffer, in sysctl_test_api_dointvec_table_len_is_zero() 153 struct ctl_table table = { in sysctl_test_api_dointvec_table_read_but_position_set() local 175 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ, buffer, in sysctl_test_api_dointvec_table_read_but_position_set() 188 struct ctl_table table = { in sysctl_test_dointvec_read_happy_single_positive() local 202 *((int *)table.data) = 13; in sysctl_test_dointvec_read_happy_single_positive() 204 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ, in sysctl_test_dointvec_read_happy_single_positive() 219 struct ctl_table table = { in sysctl_test_dointvec_read_happy_single_negative() local 232 *((int *)table.data) = -16; in sysctl_test_dointvec_read_happy_single_negative() [all …]
|
D | sysctl.c | 203 static int bpf_stats_handler(struct ctl_table *table, int write, in bpf_stats_handler() argument 206 struct static_key *key = (struct static_key *)table->data; in bpf_stats_handler() 212 .mode = table->mode, in bpf_stats_handler() 238 static int bpf_unpriv_handler(struct ctl_table *table, int write, in bpf_unpriv_handler() argument 241 int ret, unpriv_enable = *(int *)table->data; in bpf_unpriv_handler() 243 struct ctl_table tmp = *table; in bpf_unpriv_handler() 253 *(int *)table->data = unpriv_enable; in bpf_unpriv_handler() 330 static void warn_sysctl_write(struct ctl_table *table) in warn_sysctl_write() argument 335 current->comm, table->procname); in warn_sysctl_write() 348 struct ctl_table *table) in proc_first_pos_non_zero_ignore() argument [all …]
|
D | utsname_sysctl.c | 17 static void *get_uts(struct ctl_table *table) in get_uts() argument 19 char *which = table->data; in get_uts() 32 static int proc_do_uts_string(struct ctl_table *table, int write, in proc_do_uts_string() argument 39 memcpy(&uts_table, table, sizeof(uts_table)); in proc_do_uts_string() 49 memcpy(tmp_data, get_uts(table), sizeof(tmp_data)); in proc_do_uts_string() 61 memcpy(get_uts(table), tmp_data, sizeof(tmp_data)); in proc_do_uts_string() 63 proc_sys_poll_notify(table->poll); in proc_do_uts_string() 132 struct ctl_table *table = &uts_kern_table[proc]; in uts_proc_notify() local 134 proc_sys_poll_notify(table->poll); in uts_proc_notify()
|
D | watchdog.c | 653 static int proc_watchdog_common(int which, struct ctl_table *table, int write, in proc_watchdog_common() argument 656 int err, old, *param = table->data; in proc_watchdog_common() 666 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 669 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 680 int proc_watchdog(struct ctl_table *table, int write, in proc_watchdog() argument 684 table, write, buffer, lenp, ppos); in proc_watchdog() 690 int proc_nmi_watchdog(struct ctl_table *table, int write, in proc_nmi_watchdog() argument 696 table, write, buffer, lenp, ppos); in proc_nmi_watchdog() 702 int proc_soft_watchdog(struct ctl_table *table, int write, in proc_soft_watchdog() argument 706 table, write, buffer, lenp, ppos); in proc_soft_watchdog() [all …]
|
D | stackleak.c | 22 int stack_erasing_sysctl(struct ctl_table *table, int write, in stack_erasing_sysctl() argument 29 table->data = &state; in stack_erasing_sysctl() 30 table->maxlen = sizeof(int); in stack_erasing_sysctl() 31 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in stack_erasing_sysctl()
|
D | umh.c | 486 static int proc_cap_handler(struct ctl_table *table, int write, in proc_cap_handler() argument 504 if (table->data == CAP_BSET) in proc_cap_handler() 506 else if (table->data == CAP_PI) in proc_cap_handler() 513 t = *table; in proc_cap_handler() 536 if (table->data == CAP_BSET) in proc_cap_handler() 538 if (table->data == CAP_PI) in proc_cap_handler()
|
D | ucount.c | 35 struct ctl_table *table) in set_permissions() argument 43 mode = (table->mode & S_IRWXU) >> 6; in set_permissions() 46 mode = table->mode & S_IROTH; in set_permissions()
|
D | seccomp.c | 2219 struct ctl_table table; in read_actions_logged() local 2227 table = *ro_table; in read_actions_logged() 2228 table.data = names; in read_actions_logged() 2229 table.maxlen = sizeof(names); in read_actions_logged() 2230 return proc_dostring(&table, 0, buffer, lenp, ppos); in read_actions_logged() 2237 struct ctl_table table; in write_actions_logged() local 2245 table = *ro_table; in write_actions_logged() 2246 table.data = names; in write_actions_logged() 2247 table.maxlen = sizeof(names); in write_actions_logged() 2248 ret = proc_dostring(&table, 1, buffer, lenp, ppos); in write_actions_logged() [all …]
|
D | hung_task.c | 233 int proc_dohung_task_timeout_secs(struct ctl_table *table, int write, in proc_dohung_task_timeout_secs() argument 238 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in proc_dohung_task_timeout_secs()
|
D | latencytop.c | 272 int sysctl_latencytop(struct ctl_table *table, int write, void *buffer, in sysctl_latencytop() argument 277 err = proc_dointvec(table, write, buffer, lenp, ppos); in sysctl_latencytop()
|
D | pid_namespace.c | 283 static int pid_ns_ctl_handler(struct ctl_table *table, int write, in pid_ns_ctl_handler() argument 287 struct ctl_table tmp = *table; in pid_ns_ctl_handler()
|
D | kprobes.c | 929 int proc_kprobes_optimization_handler(struct ctl_table *table, int write, in proc_kprobes_optimization_handler() argument 937 ret = proc_dointvec_minmax(table, write, buffer, length, ppos); in proc_kprobes_optimization_handler()
|
D | fork.c | 3159 int sysctl_max_threads(struct ctl_table *table, int write, in sysctl_max_threads() argument 3168 t = *table; in sysctl_max_threads()
|
/kernel/power/ |
D | energy_model.c | 82 em_debug_create_ps(&dev->em_pd->table[i], d); in em_debug_create_pd() 108 struct em_perf_state *table; in em_create_perf_table() local 112 table = kcalloc(nr_states, sizeof(*table), GFP_KERNEL); in em_create_perf_table() 113 if (!table) in em_create_perf_table() 150 table[i].power = power; in em_create_perf_table() 151 table[i].frequency = prev_freq = freq; in em_create_perf_table() 155 fmax = (u64) table[nr_states - 1].frequency; in em_create_perf_table() 157 unsigned long power_res = em_scale_power(table[i].power); in em_create_perf_table() 159 table[i].cost = div64_u64(fmax * power_res, in em_create_perf_table() 160 table[i].frequency); in em_create_perf_table() [all …]
|
/kernel/sched/ |
D | debug.c | 248 static int sd_ctl_doflags(struct ctl_table *table, int write, in sd_ctl_doflags() argument 251 unsigned long flags = *(unsigned long *)table->data; in sd_ctl_doflags() 305 struct ctl_table *table = sd_alloc_ctl_entry(9); in sd_alloc_ctl_domain_table() local 307 if (table == NULL) in sd_alloc_ctl_domain_table() 310 …set_table_entry(&table[0], "min_interval", &sd->min_interval, sizeof(long), 0644, proc_doulo… in sd_alloc_ctl_domain_table() 311 …set_table_entry(&table[1], "max_interval", &sd->max_interval, sizeof(long), 0644, proc_doulo… in sd_alloc_ctl_domain_table() 312 …set_table_entry(&table[2], "busy_factor", &sd->busy_factor, sizeof(int), 0644, proc_dointve… in sd_alloc_ctl_domain_table() 313 …set_table_entry(&table[3], "imbalance_pct", &sd->imbalance_pct, sizeof(int), 0644, proc_doi… in sd_alloc_ctl_domain_table() 314 …set_table_entry(&table[4], "cache_nice_tries", &sd->cache_nice_tries, sizeof(int), 0644, pro… in sd_alloc_ctl_domain_table() 315 set_table_entry(&table[5], "flags", &sd->flags, sizeof(int), 0444, sd_ctl_doflags); in sd_alloc_ctl_domain_table() [all …]
|
D | pelt.c | 541 int sched_pelt_multiplier(struct ctl_table *table, int write, void *buffer, in sched_pelt_multiplier() argument 551 ret = proc_dointvec(table, write, buffer, lenp, ppos); in sched_pelt_multiplier()
|
D | rt.c | 2845 int sched_rt_handler(struct ctl_table *table, int write, void *buffer, in sched_rt_handler() argument 2856 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in sched_rt_handler() 2884 int sched_rr_handler(struct ctl_table *table, int write, void *buffer, in sched_rr_handler() argument 2891 ret = proc_dointvec(table, write, buffer, lenp, ppos); in sched_rr_handler()
|
D | topology.c | 220 int sched_energy_aware_handler(struct ctl_table *table, int write, in sched_energy_aware_handler() argument 228 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in sched_energy_aware_handler()
|
D | core.c | 1406 int sysctl_sched_uclamp_handler(struct ctl_table *table, int write, in sysctl_sched_uclamp_handler() argument 1418 result = proc_dointvec(table, write, buffer, lenp, ppos); in sysctl_sched_uclamp_handler() 3362 int sysctl_numa_balancing(struct ctl_table *table, int write, in sysctl_numa_balancing() argument 3372 t = *table; in sysctl_numa_balancing() 3437 int sysctl_schedstats(struct ctl_table *table, int write, void *buffer, in sysctl_schedstats() argument 3447 t = *table; in sysctl_schedstats()
|
/kernel/events/ |
D | callchain.c | 236 int perf_event_max_stack_handler(struct ctl_table *table, int write, in perf_event_max_stack_handler() argument 239 int *value = table->data; in perf_event_max_stack_handler() 241 struct ctl_table new_table = *table; in perf_event_max_stack_handler()
|
/kernel/trace/ |
D | trace_stack.c | 518 stack_trace_sysctl(struct ctl_table *table, int write, void *buffer, in stack_trace_sysctl() argument 527 ret = proc_dointvec(table, write, buffer, lenp, ppos); in stack_trace_sysctl()
|
D | Kconfig | 202 compile time, a table is made of all the locations that ftrace 203 can function trace, and this table is linked into the kernel
|
/kernel/bpf/ |
D | cgroup.c | 1280 struct ctl_table *table, int write, in __cgroup_bpf_run_filter_sysctl() argument 1286 .table = table, in __cgroup_bpf_run_filter_sysctl() 1301 table->proc_handler(table, 0, ctx.cur_val, &ctx.cur_len, &pos)) { in __cgroup_bpf_run_filter_sysctl() 1598 ret = strscpy(buf, ctx->table->procname, buf_len); in BPF_CALL_4()
|
/kernel/time/ |
D | timer.c | 259 int timer_migration_handler(struct ctl_table *table, int write, in timer_migration_handler() argument 265 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in timer_migration_handler()
|
/kernel/printk/ |
D | printk.c | 180 int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write, in devkmsg_sysctl_set_loglvl() argument 195 err = proc_dostring(table, write, buffer, lenp, ppos); in devkmsg_sysctl_set_loglvl()
|