/kernel/bpf/ |
D | link_iter.c | 27 static void *bpf_link_seq_next(struct seq_file *seq, void *v, loff_t *pos) in bpf_link_seq_next() argument 33 bpf_link_put((struct bpf_link *)v); in bpf_link_seq_next() 44 static int __bpf_link_seq_show(struct seq_file *seq, void *v, bool in_stop) in DEFINE_BPF_ITER_FUNC() 52 ctx.link = v; in DEFINE_BPF_ITER_FUNC() 61 static int bpf_link_seq_show(struct seq_file *seq, void *v) in bpf_link_seq_show() argument 63 return __bpf_link_seq_show(seq, v, false); in bpf_link_seq_show() 66 static void bpf_link_seq_stop(struct seq_file *seq, void *v) in bpf_link_seq_stop() argument 68 if (!v) in bpf_link_seq_stop() 69 (void)__bpf_link_seq_show(seq, v, true); in bpf_link_seq_stop() 71 bpf_link_put((struct bpf_link *)v); in bpf_link_seq_stop()
|
D | prog_iter.c | 27 static void *bpf_prog_seq_next(struct seq_file *seq, void *v, loff_t *pos) in bpf_prog_seq_next() argument 33 bpf_prog_put((struct bpf_prog *)v); in bpf_prog_seq_next() 44 static int __bpf_prog_seq_show(struct seq_file *seq, void *v, bool in_stop) in DEFINE_BPF_ITER_FUNC() 52 ctx.prog = v; in DEFINE_BPF_ITER_FUNC() 61 static int bpf_prog_seq_show(struct seq_file *seq, void *v) in bpf_prog_seq_show() argument 63 return __bpf_prog_seq_show(seq, v, false); in bpf_prog_seq_show() 66 static void bpf_prog_seq_stop(struct seq_file *seq, void *v) in bpf_prog_seq_stop() argument 68 if (!v) in bpf_prog_seq_stop() 69 (void)__bpf_prog_seq_show(seq, v, true); in bpf_prog_seq_stop() 71 bpf_prog_put((struct bpf_prog *)v); in bpf_prog_seq_stop()
|
D | tnum.c | 88 u64 alpha, beta, v; in tnum_and() local 92 v = a.value & b.value; in tnum_and() 93 return TNUM(v, alpha & beta & ~v); in tnum_and() 98 u64 v, mu; in tnum_or() local 100 v = a.value | b.value; in tnum_or() 102 return TNUM(v, mu & ~v); in tnum_or() 107 u64 v, mu; in tnum_xor() local 109 v = a.value ^ b.value; in tnum_xor() 111 return TNUM(v & ~mu, mu); in tnum_xor() 146 u64 v, mu; in tnum_intersect() local [all …]
|
D | map_iter.c | 27 static void *bpf_map_seq_next(struct seq_file *seq, void *v, loff_t *pos) in bpf_map_seq_next() argument 33 bpf_map_put((struct bpf_map *)v); in bpf_map_seq_next() 44 static int __bpf_map_seq_show(struct seq_file *seq, void *v, bool in_stop) in DEFINE_BPF_ITER_FUNC() 52 ctx.map = v; in DEFINE_BPF_ITER_FUNC() 61 static int bpf_map_seq_show(struct seq_file *seq, void *v) in bpf_map_seq_show() argument 63 return __bpf_map_seq_show(seq, v, false); in bpf_map_seq_show() 66 static void bpf_map_seq_stop(struct seq_file *seq, void *v) in bpf_map_seq_stop() argument 68 if (!v) in bpf_map_seq_stop() 69 (void)__bpf_map_seq_show(seq, v, true); in bpf_map_seq_stop() 71 bpf_map_put((struct bpf_map *)v); in bpf_map_seq_stop()
|
D | task_iter.c | 174 static void *task_seq_next(struct seq_file *seq, void *v, loff_t *pos) in task_seq_next() argument 181 put_task_struct((struct task_struct *)v); in task_seq_next() 213 static int task_seq_show(struct seq_file *seq, void *v) in task_seq_show() argument 215 return __task_seq_show(seq, v, false); in task_seq_show() 218 static void task_seq_stop(struct seq_file *seq, void *v) in task_seq_stop() argument 220 if (!v) in task_seq_stop() 221 (void)__task_seq_show(seq, v, true); in task_seq_stop() 223 put_task_struct((struct task_struct *)v); in task_seq_stop() 351 static void *task_file_seq_next(struct seq_file *seq, void *v, loff_t *pos) in task_file_seq_next() argument 357 fput((struct file *)v); in task_file_seq_next() [all …]
|
D | cgroup_iter.c | 88 static void cgroup_iter_seq_stop(struct seq_file *seq, void *v) in cgroup_iter_seq_stop() argument 95 if (!v) { in cgroup_iter_seq_stop() 101 static void *cgroup_iter_seq_next(struct seq_file *seq, void *v, loff_t *pos) in cgroup_iter_seq_next() argument 103 struct cgroup_subsys_state *curr = (struct cgroup_subsys_state *)v; in cgroup_iter_seq_next() 147 static int cgroup_iter_seq_show(struct seq_file *seq, void *v) in cgroup_iter_seq_show() argument 149 return __cgroup_iter_seq_show(seq, (struct cgroup_subsys_state *)v, in cgroup_iter_seq_show()
|
D | btf.c | 411 const struct resolve_vertex *v); 1767 struct resolve_vertex *v; in env_stack_push() local 1778 v = &env->stack[env->top_stack++]; in env_stack_push() 1779 v->t = t; in env_stack_push() 1780 v->type_id = type_id; in env_stack_push() 1781 v->next_member = 0; in env_stack_push() 2024 const struct resolve_vertex *v) in btf_df_resolve() argument 2026 btf_verifier_log_basic(env, v->t, "Unsupported resolve"); in btf_df_resolve() 2521 const struct resolve_vertex *v) in btf_modifier_resolve() argument 2523 const struct btf_type *t = v->t; in btf_modifier_resolve() [all …]
|
/kernel/ |
D | notifier.c | 69 unsigned long val, void *v, in notifier_call_chain() argument 87 ret = nb->notifier_call(nb, val, v); in notifier_call_chain() 118 void *v) in notifier_call_chain_robust() argument 122 ret = notifier_call_chain(nl, val_up, v, -1, &nr); in notifier_call_chain_robust() 124 notifier_call_chain(nl, val_down, v, nr-1, NULL); in notifier_call_chain_robust() 220 unsigned long val, void *v) in atomic_notifier_call_chain() argument 225 ret = notifier_call_chain(&nh->head, val, v, -1, NULL); in atomic_notifier_call_chain() 336 unsigned long val_up, unsigned long val_down, void *v) in blocking_notifier_call_chain_robust() argument 347 ret = notifier_call_chain_robust(&nh->head, val_up, val_down, v); in blocking_notifier_call_chain_robust() 371 unsigned long val, void *v) in blocking_notifier_call_chain() argument [all …]
|
D | compat.c | 253 compat_sigset_t v; in get_compat_sigset() local 254 if (copy_from_user(&v, compat, sizeof(compat_sigset_t))) in get_compat_sigset() 257 case 4: set->sig[3] = v.sig[6] | (((long)v.sig[7]) << 32 ); in get_compat_sigset() 259 case 3: set->sig[2] = v.sig[4] | (((long)v.sig[5]) << 32 ); in get_compat_sigset() 261 case 2: set->sig[1] = v.sig[2] | (((long)v.sig[3]) << 32 ); in get_compat_sigset() 263 case 1: set->sig[0] = v.sig[0] | (((long)v.sig[1]) << 32 ); in get_compat_sigset()
|
D | ucount.c | 215 static inline bool atomic_long_inc_below(atomic_long_t *v, int u) in atomic_long_inc_below() argument 218 c = atomic_long_read(v); in atomic_long_inc_below() 222 old = atomic_long_cmpxchg(v, c, c+1); in atomic_long_inc_below() 262 long inc_rlimit_ucounts(struct ucounts *ucounts, enum rlimit_type type, long v) in inc_rlimit_ucounts() argument 269 long new = atomic_long_add_return(v, &iter->rlimit[type]); in inc_rlimit_ucounts() 279 bool dec_rlimit_ucounts(struct ucounts *ucounts, enum rlimit_type type, long v) in dec_rlimit_ucounts() argument 284 long dec = atomic_long_sub_return(v, &iter->rlimit[type]); in dec_rlimit_ucounts()
|
D | fail_function.c | 189 static void fei_seq_stop(struct seq_file *m, void *v) in fei_seq_stop() argument 194 static void *fei_seq_next(struct seq_file *m, void *v, loff_t *pos) in fei_seq_next() argument 196 return seq_list_next(v, &fei_attr_list, pos); in fei_seq_next() 199 static int fei_seq_show(struct seq_file *m, void *v) in fei_seq_show() argument 201 struct fei_attr *attr = list_entry(v, struct fei_attr, list); in fei_seq_show()
|
D | jump_label.c | 118 int v, v1; in static_key_slow_inc_cpuslocked() local 135 for (v = atomic_read(&key->enabled); v > 0; v = v1) { in static_key_slow_inc_cpuslocked() 136 v1 = atomic_cmpxchg(&key->enabled, v, v + 1); in static_key_slow_inc_cpuslocked() 137 if (likely(v1 == v)) in static_key_slow_inc_cpuslocked()
|
D | dma.c | 118 static int proc_dma_show(struct seq_file *m, void *v) in proc_dma_show() argument 131 static int proc_dma_show(struct seq_file *m, void *v) in proc_dma_show() argument
|
/kernel/time/ |
D | itimer.c | 103 struct __kernel_old_itimerval v; in put_itimerval() local 105 v.it_interval.tv_sec = i->it_interval.tv_sec; in put_itimerval() 106 v.it_interval.tv_usec = i->it_interval.tv_nsec / NSEC_PER_USEC; in put_itimerval() 107 v.it_value.tv_sec = i->it_value.tv_sec; in put_itimerval() 108 v.it_value.tv_usec = i->it_value.tv_nsec / NSEC_PER_USEC; in put_itimerval() 109 return copy_to_user(o, &v, sizeof(struct __kernel_old_itimerval)) ? -EFAULT : 0; in put_itimerval() 255 struct itimerspec64 v = {}; in clear_itimer() local 259 do_setitimer(i, &v, NULL); in clear_itimer() 315 struct __kernel_old_itimerval v; in get_itimerval() local 317 if (copy_from_user(&v, i, sizeof(struct __kernel_old_itimerval))) in get_itimerval() [all …]
|
/kernel/trace/ |
D | trace_printk.c | 123 find_next_mod_format(int start_index, void *v, const char **fmt, loff_t *pos) in find_next_mod_format() argument 136 if (!v || start_index == *pos) { in find_next_mod_format() 153 mod_fmt = container_of(v, typeof(*mod_fmt), fmt); in find_next_mod_format() 180 find_next_mod_format(int start_index, void *v, const char **fmt, loff_t *pos) in find_next_mod_format() argument 265 static const char **find_next(void *v, loff_t *pos) in find_next() argument 267 const char **fmt = v; in find_next() 295 return find_next_mod_format(start_index, v, fmt, pos); in find_next() 305 static void *t_next(struct seq_file *m, void * v, loff_t *pos) in t_next() argument 308 return find_next(v, pos); in t_next() 311 static int t_show(struct seq_file *m, void *v) in t_show() argument [all …]
|
D | trace_branch.c | 297 static int annotate_branch_stat_show(struct seq_file *m, void *v) in annotate_branch_stat_show() argument 299 struct ftrace_likely_data *p = v; in annotate_branch_stat_show() 323 annotated_branch_stat_next(void *v, int idx) in annotated_branch_stat_next() argument 325 struct ftrace_likely_data *p = v; in annotated_branch_stat_next() 413 all_branch_stat_next(void *v, int idx) in all_branch_stat_next() argument 415 struct ftrace_branch_data *p = v; in all_branch_stat_next() 425 static int all_branch_stat_show(struct seq_file *m, void *v) in all_branch_stat_show() argument 427 struct ftrace_branch_data *p = v; in all_branch_stat_show()
|
D | trace_recursion_record.c | 141 static void *recursed_function_seq_next(struct seq_file *m, void *v, loff_t *pos) in recursed_function_seq_next() argument 152 static void recursed_function_seq_stop(struct seq_file *m, void *v) in recursed_function_seq_stop() argument 158 static int recursed_function_seq_show(struct seq_file *m, void *v) in recursed_function_seq_show() argument 160 struct recursed_functions *record = v; in recursed_function_seq_show()
|
D | trace_dynevent.c | 158 void *dyn_event_seq_next(struct seq_file *m, void *v, loff_t *pos) in dyn_event_seq_next() argument 160 return seq_list_next(v, &dyn_event_list, pos); in dyn_event_seq_next() 163 void dyn_event_seq_stop(struct seq_file *m, void *v) in dyn_event_seq_stop() argument 168 static int dyn_event_seq_show(struct seq_file *m, void *v) in dyn_event_seq_show() argument 170 struct dyn_event *ev = v; in dyn_event_seq_show()
|
/kernel/locking/ |
D | lockdep_proc.c | 38 static void *l_next(struct seq_file *m, void *v, loff_t *pos) in l_next() argument 40 struct lock_class *class = v; in l_next() 56 static void l_stop(struct seq_file *m, void *v) in l_stop() argument 77 static int l_show(struct seq_file *m, void *v) in l_show() argument 79 struct lock_class *class = v; in l_show() 84 if (v == lock_classes) in l_show() 139 static void *lc_next(struct seq_file *m, void *v, loff_t *pos) in lc_next() argument 145 static void lc_stop(struct seq_file *m, void *v) in lc_stop() argument 149 static int lc_show(struct seq_file *m, void *v) in lc_show() argument 151 struct lock_chain *chain = v; in lc_show() [all …]
|
/kernel/gcov/ |
D | base.c | 63 size_t store_gcov_u32(void *buffer, size_t off, u32 v) in store_gcov_u32() argument 69 *data = v; in store_gcov_u32() 87 size_t store_gcov_u64(void *buffer, size_t off, u64 v) in store_gcov_u64() argument 94 data[0] = (v & 0xffffffffUL); in store_gcov_u64() 95 data[1] = (v >> 32); in store_gcov_u64()
|
/kernel/rcu/ |
D | rcu_segcblist.c | 82 static void rcu_segcblist_set_len(struct rcu_segcblist *rsclp, long v) in rcu_segcblist_set_len() argument 85 atomic_long_set(&rsclp->len, v); in rcu_segcblist_set_len() 87 WRITE_ONCE(rsclp->len, v); in rcu_segcblist_set_len() 110 static void rcu_segcblist_set_seglen(struct rcu_segcblist *rsclp, int seg, long v) in rcu_segcblist_set_seglen() argument 112 WRITE_ONCE(rsclp->seglen[seg], v); in rcu_segcblist_set_seglen() 116 static void rcu_segcblist_add_seglen(struct rcu_segcblist *rsclp, int seg, long v) in rcu_segcblist_add_seglen() argument 118 WRITE_ONCE(rsclp->seglen[seg], rsclp->seglen[seg] + v); in rcu_segcblist_add_seglen() 210 void rcu_segcblist_add_len(struct rcu_segcblist *rsclp, long v) in rcu_segcblist_add_len() argument 214 atomic_long_add(v, &rsclp->len); in rcu_segcblist_add_len() 218 WRITE_ONCE(rsclp->len, rsclp->len + v); in rcu_segcblist_add_len()
|
/kernel/irq/ |
D | proc.c | 83 static int irq_affinity_hint_proc_show(struct seq_file *m, void *v) in irq_affinity_hint_proc_show() argument 104 static int irq_affinity_proc_show(struct seq_file *m, void *v) in irq_affinity_proc_show() argument 109 static int irq_affinity_list_proc_show(struct seq_file *m, void *v) in irq_affinity_list_proc_show() argument 218 static int irq_effective_aff_proc_show(struct seq_file *m, void *v) in irq_effective_aff_proc_show() argument 223 static int irq_effective_aff_list_proc_show(struct seq_file *m, void *v) in irq_effective_aff_list_proc_show() argument 229 static int default_affinity_show(struct seq_file *m, void *v) in default_affinity_show() argument 279 static int irq_node_proc_show(struct seq_file *m, void *v) in irq_node_proc_show() argument 288 static int irq_spurious_proc_show(struct seq_file *m, void *v) in irq_spurious_proc_show() argument 460 int show_interrupts(struct seq_file *p, void *v) in show_interrupts() argument 465 int i = *(loff_t *) v, j; in show_interrupts()
|
/kernel/printk/ |
D | index.c | 43 static void *pi_next(struct seq_file *s, void *v, loff_t *pos) in pi_next() argument 73 static int pi_show(struct seq_file *s, void *v) in pi_show() argument 75 const struct pi_entry *entry = v; in pi_show() 80 if (v == SEQ_START_TOKEN) { in pi_show() 116 static void pi_stop(struct seq_file *p, void *v) { } in pi_stop() argument
|
/kernel/cgroup/ |
D | debug.c | 40 static int current_css_set_read(struct seq_file *seq, void *v) in current_css_set_read() argument 87 static int current_css_set_cg_links_read(struct seq_file *seq, void *v) in current_css_set_cg_links_read() argument 114 static int cgroup_css_links_read(struct seq_file *seq, void *v) in cgroup_css_links_read() argument 203 static int cgroup_subsys_states_read(struct seq_file *seq, void *v) in cgroup_subsys_states_read() argument 255 static int cgroup_masks_read(struct seq_file *seq, void *v) in cgroup_masks_read() argument
|
D | misc.c | 208 static int misc_cg_max_show(struct seq_file *sf, void *v) in misc_cg_max_show() argument 297 static int misc_cg_current_show(struct seq_file *sf, void *v) in misc_cg_current_show() argument 322 static int misc_cg_capacity_show(struct seq_file *sf, void *v) in misc_cg_capacity_show() argument 336 static int misc_events_show(struct seq_file *sf, void *v) in misc_events_show() argument
|