Home
last modified time | relevance | path

Searched refs:seq (Results 1 – 25 of 38) sorted by relevance

12

/kernel/trace/
Dtrace_seq.c30 #define TRACE_SEQ_BUF_LEFT(s) seq_buf_buffer_left(&(s)->seq)
33 #define TRACE_SEQ_BUF_USED(s) seq_buf_used(&(s)->seq)
40 if (unlikely(!s->seq.size)) in __trace_seq_init()
59 ret = seq_buf_print_seq(m, &s->seq); in trace_print_seq()
85 unsigned int save_len = s->seq.len; in trace_seq_printf()
94 seq_buf_vprintf(&s->seq, fmt, ap); in trace_seq_printf()
98 if (unlikely(seq_buf_has_overflowed(&s->seq))) { in trace_seq_printf()
99 s->seq.len = save_len; in trace_seq_printf()
116 unsigned int save_len = s->seq.len; in trace_seq_bitmask()
123 seq_buf_printf(&s->seq, "%*pb", nmaskbits, maskp); in trace_seq_bitmask()
[all …]
Dtrace_output.c25 struct trace_seq *s = &iter->seq; in trace_print_bputs_msg_only()
38 struct trace_seq *s = &iter->seq; in trace_print_bprintk_msg_only()
51 struct trace_seq *s = &iter->seq; in trace_print_printk_msg_only()
229 struct trace_seq *s = &iter->seq; in trace_raw_output_prep()
251 struct trace_seq *s = &iter->seq; in trace_output_raw()
488 struct trace_seq *s = &iter->seq; in lat_print_timestamp()
528 struct trace_seq *s = &iter->seq; in trace_print_context()
568 struct trace_seq *s = &iter->seq; in trace_print_lat_context()
782 trace_seq_printf(&iter->seq, "type: %d\n", iter->ent->type); in trace_nop_print()
784 return trace_handle_return(&iter->seq); in trace_nop_print()
[all …]
Dtrace_kdb.c44 memset(&iter.seq, 0, in ftrace_dump_buf()
46 offsetof(struct trace_iterator, seq)); in ftrace_dump_buf()
72 trace_printk_seq(&iter.seq); in ftrace_dump_buf()
Dtrace.c1246 if (trace_seq_used(s) <= s->seq.readpos) in trace_seq_to_buffer()
1249 len = trace_seq_used(s) - s->seq.readpos; in trace_seq_to_buffer()
1252 memcpy(buf, s->buffer + s->seq.readpos, cnt); in trace_seq_to_buffer()
1254 s->seq.readpos += cnt; in trace_seq_to_buffer()
3032 seq_print_ip_sym(&iter->seq, data->critical_start, sym_flags); in print_trace_header()
3033 trace_print_seq(m, &iter->seq); in print_trace_header()
3035 seq_print_ip_sym(&iter->seq, data->critical_end, sym_flags); in print_trace_header()
3036 trace_print_seq(m, &iter->seq); in print_trace_header()
3045 struct trace_seq *s = &iter->seq; in test_cpu_buff_start()
3072 struct trace_seq *s = &iter->seq; in print_trace_fmt()
[all …]
Dtrace_mmiotrace.c101 struct trace_seq *s = &iter->seq; in mmio_pipe_open()
137 struct trace_seq *s = &iter->seq; in mmio_read()
171 struct trace_seq *s = &iter->seq; in mmio_print_rw()
216 struct trace_seq *s = &iter->seq; in mmio_print_map()
250 struct trace_seq *s = &iter->seq; in mmio_print_mark()
Dtrace_branch.c145 trace_seq_printf(&iter->seq, "[%s] %s:%s:%d\n", in trace_branch_print()
151 return trace_handle_return(&iter->seq); in trace_branch_print()
Dtrace_functions_graph.c723 struct trace_seq *s = &iter->seq; in print_graph_irq()
1230 if (s->buffer[s->seq.len - 1] == '\n') { in print_graph_comment()
1231 s->buffer[s->seq.len - 1] = '\0'; in print_graph_comment()
1232 s->seq.len--; in print_graph_comment()
1247 struct trace_seq *s = &iter->seq; in print_graph_function_flags()
/kernel/time/
Dtimekeeping.c40 seqcount_t seq; member
57 seqcount_t seq; member
189 unsigned int seq; in timekeeping_get_delta() local
199 seq = read_seqcount_begin(&tk_core.seq); in timekeeping_get_delta()
204 } while (read_seqcount_retry(&tk_core.seq, seq)); in timekeeping_get_delta()
374 raw_write_seqcount_latch(&tkf->seq); in update_fast_timekeeper()
380 raw_write_seqcount_latch(&tkf->seq); in update_fast_timekeeper()
421 unsigned int seq; in __ktime_get_fast_ns() local
425 seq = raw_read_seqcount_latch(&tkf->seq); in __ktime_get_fast_ns()
426 tkr = tkf->base + (seq & 0x01); in __ktime_get_fast_ns()
[all …]
Dsched_clock.c63 seqcount_t seq; member
99 unsigned long seq; in sched_clock() local
103 seq = raw_read_seqcount(&cd.seq); in sched_clock()
104 rd = cd.read_data + (seq & 1); in sched_clock()
109 } while (read_seqcount_retry(&cd.seq, seq)); in sched_clock()
130 raw_write_seqcount_latch(&cd.seq); in update_clock_read_data()
136 raw_write_seqcount_latch(&cd.seq); in update_clock_read_data()
272 unsigned long seq = raw_read_seqcount(&cd.seq); in suspended_sched_clock_read() local
274 return cd.read_data[seq & 1].epoch_cyc; in suspended_sched_clock_read()
Djiffies.c82 unsigned long seq; in get_jiffies_64() local
86 seq = read_seqbegin(&jiffies_lock); in get_jiffies_64()
88 } while (read_seqretry(&jiffies_lock, seq)); in get_jiffies_64()
Dhrtimer.c70 .seq = SEQCNT_ZERO(hrtimer_bases.seq),
118 .seq = SEQCNT_ZERO(migration_cpu_base),
1180 unsigned int seq; in hrtimer_active() local
1184 seq = raw_read_seqcount_begin(&cpu_base->seq); in hrtimer_active()
1190 } while (read_seqcount_retry(&cpu_base->seq, seq) || in hrtimer_active()
1234 raw_write_seqcount_barrier(&cpu_base->seq); in __run_hrtimer()
1279 raw_write_seqcount_barrier(&cpu_base->seq); in __run_hrtimer()
Dtick-common.c156 unsigned long seq; in tick_setup_periodic() local
160 seq = read_seqbegin(&jiffies_lock); in tick_setup_periodic()
162 } while (read_seqretry(&jiffies_lock, seq)); in tick_setup_periodic()
Dtick-sched.c676 unsigned long seq, basejiff; in tick_nohz_stop_sched_tick() local
681 seq = read_seqbegin(&jiffies_lock); in tick_nohz_stop_sched_tick()
684 } while (read_seqretry(&jiffies_lock, seq)); in tick_nohz_stop_sched_tick()
/kernel/sched/
Dstats.c16 static inline void show_easstat(struct seq_file *seq, struct eas_stats *stats) in show_easstat() argument
19 seq_printf(seq, "eas %llu %llu %llu %llu %llu %llu ", in show_easstat()
23 seq_printf(seq, "%llu %llu %llu %llu %llu %llu %llu ", in show_easstat()
28 seq_printf(seq, "%llu %llu %llu %llu %llu ", in show_easstat()
32 seq_printf(seq, "%llu %llu\n", in show_easstat()
37 static int show_schedstat(struct seq_file *seq, void *v) in show_schedstat() argument
42 seq_printf(seq, "version %d\n", SCHEDSTAT_VERSION); in show_schedstat()
43 seq_printf(seq, "timestamp %lu\n", jiffies); in show_schedstat()
54 seq_printf(seq, in show_schedstat()
62 seq_printf(seq, "\n"); in show_schedstat()
[all …]
Dcputime.c355 unsigned int seq, nextseq; in thread_group_cputime() local
373 seq = nextseq; in thread_group_cputime()
374 flags = read_seqbegin_or_lock_irqsave(&sig->stats_lock, &seq); in thread_group_cputime()
387 } while (need_seqretry(&sig->stats_lock, seq)); in thread_group_cputime()
388 done_seqretry_irqrestore(&sig->stats_lock, seq, flags); in thread_group_cputime()
868 unsigned int seq; in task_gtime() local
875 seq = read_seqcount_begin(&t->vtime_seqcount); in task_gtime()
881 } while (read_seqcount_retry(&t->vtime_seqcount, seq)); in task_gtime()
897 unsigned int seq; in fetch_task_cputime() local
904 seq = read_seqcount_begin(&t->vtime_seqcount); in fetch_task_cputime()
[all …]
/kernel/
Duser_namespace.c476 static int uid_m_show(struct seq_file *seq, void *v) in uid_m_show() argument
478 struct user_namespace *ns = seq->private; in uid_m_show()
483 lower_ns = seq_user_ns(seq); in uid_m_show()
489 seq_printf(seq, "%10u %10u %10u\n", in uid_m_show()
497 static int gid_m_show(struct seq_file *seq, void *v) in gid_m_show() argument
499 struct user_namespace *ns = seq->private; in gid_m_show()
504 lower_ns = seq_user_ns(seq); in gid_m_show()
510 seq_printf(seq, "%10u %10u %10u\n", in gid_m_show()
518 static int projid_m_show(struct seq_file *seq, void *v) in projid_m_show() argument
520 struct user_namespace *ns = seq->private; in projid_m_show()
[all …]
Dcgroup.c1659 static int cgroup_show_options(struct seq_file *seq, in cgroup_show_options() argument
1669 seq_show_option(seq, ss->legacy_name, NULL); in cgroup_show_options()
1671 seq_puts(seq, ",noprefix"); in cgroup_show_options()
1673 seq_puts(seq, ",xattr"); in cgroup_show_options()
1677 seq_show_option(seq, "release_agent", in cgroup_show_options()
1682 seq_puts(seq, ",clone_children"); in cgroup_show_options()
1684 seq_show_option(seq, "name", root->name); in cgroup_show_options()
3018 static int cgroup_release_agent_show(struct seq_file *seq, void *v) in cgroup_release_agent_show() argument
3020 struct cgroup *cgrp = seq_css(seq)->cgroup; in cgroup_release_agent_show()
3023 seq_puts(seq, cgrp->root->release_agent_path); in cgroup_release_agent_show()
[all …]
Daudit.c558 struct sk_buff *audit_make_reply(__u32 portid, int seq, int type, int done, in audit_make_reply() argument
571 nlh = nlmsg_put(skb, portid, seq, t, size, flags); in audit_make_reply()
612 static void audit_send_reply(struct sk_buff *request_skb, int seq, int type, int done, in audit_send_reply() argument
625 skb = audit_make_reply(portid, seq, type, done, multi, payload, size); in audit_send_reply()
727 u32 seq; in audit_get_feature() local
729 seq = nlmsg_hdr(skb)->nlmsg_seq; in audit_get_feature()
731 audit_send_reply(skb, seq, AUDIT_GET_FEATURE, 0, 0, &af, sizeof(af)); in audit_get_feature()
822 u32 seq; in audit_receive_msg() local
845 seq = nlh->nlmsg_seq; in audit_receive_msg()
861 audit_send_reply(skb, seq, AUDIT_GET, 0, 0, &s, sizeof(s)); in audit_receive_msg()
[all …]
Dauditfilter.c1034 static void audit_list_rules(__u32 portid, int seq, struct sk_buff_head *q) in audit_list_rules() argument
1049 skb = audit_make_reply(portid, seq, AUDIT_LIST_RULES, in audit_list_rules()
1057 skb = audit_make_reply(portid, seq, AUDIT_LIST_RULES, 1, 1, NULL, 0); in audit_list_rules()
1092 int audit_rule_change(int type, __u32 portid, int seq, void *data, in audit_rule_change() argument
1130 int audit_list_rules_send(struct sk_buff *request_skb, int seq) in audit_list_rules_send() argument
1152 audit_list_rules(portid, seq, &dest->q); in audit_list_rules_send()
/kernel/gcov/
Dgcc_3_4.c490 static int seq_write_gcov_u32(struct seq_file *seq, u32 v) in seq_write_gcov_u32() argument
492 return seq_write(seq, &v, sizeof(v)); in seq_write_gcov_u32()
505 static int seq_write_gcov_u64(struct seq_file *seq, u64 v) in seq_write_gcov_u64() argument
511 return seq_write(seq, data, sizeof(data)); in seq_write_gcov_u64()
521 int gcov_iter_write(struct gcov_iterator *iter, struct seq_file *seq) in gcov_iter_write() argument
527 rc = seq_write_gcov_u32(seq, GCOV_DATA_MAGIC); in gcov_iter_write()
530 rc = seq_write_gcov_u32(seq, iter->info->version); in gcov_iter_write()
533 rc = seq_write_gcov_u32(seq, iter->info->stamp); in gcov_iter_write()
536 rc = seq_write_gcov_u32(seq, GCOV_TAG_FUNCTION); in gcov_iter_write()
539 rc = seq_write_gcov_u32(seq, 2); in gcov_iter_write()
[all …]
Dfs.c94 static void *gcov_seq_start(struct seq_file *seq, loff_t *pos) in gcov_seq_start() argument
98 gcov_iter_start(seq->private); in gcov_seq_start()
100 if (gcov_iter_next(seq->private)) in gcov_seq_start()
103 return seq->private; in gcov_seq_start()
107 static void *gcov_seq_next(struct seq_file *seq, void *data, loff_t *pos) in gcov_seq_next() argument
119 static int gcov_seq_show(struct seq_file *seq, void *data) in gcov_seq_show() argument
123 if (gcov_iter_write(iter, seq)) in gcov_seq_show()
128 static void gcov_seq_stop(struct seq_file *seq, void *data) in gcov_seq_stop() argument
182 struct seq_file *seq; in gcov_seq_open() local
201 seq = file->private_data; in gcov_seq_open()
[all …]
Dgcov.h66 int gcov_iter_write(struct gcov_iterator *iter, struct seq_file *seq);
Dgcc_4_7.c555 int gcov_iter_write(struct gcov_iterator *iter, struct seq_file *seq) in gcov_iter_write() argument
566 seq_write(seq, iter->buffer + iter->pos, len); in gcov_iter_write()
/kernel/printk/
Dprintk.c646 struct printk_log *msg, u64 seq, in msg_print_ext_header() argument
666 (msg->facility << 3) | msg->level, seq, ts_usec, cont); in msg_print_ext_header()
719 u64 seq; member
805 while (user->seq == log_next_seq) { in devkmsg_read()
814 user->seq != log_next_seq); in devkmsg_read()
820 if (user->seq < log_first_seq) { in devkmsg_read()
823 user->seq = log_first_seq; in devkmsg_read()
831 msg, user->seq, user->prev); in devkmsg_read()
838 user->seq++; in devkmsg_read()
871 user->seq = log_first_seq; in devkmsg_llseek()
[all …]
/kernel/rcu/
Dsrcu.c154 t = READ_ONCE(per_cpu_ptr(sp->per_cpu_ref, cpu)->seq[idx]); in srcu_readers_seq_idx()
188 unsigned long seq; in srcu_readers_active_idx_check() local
190 seq = srcu_readers_seq_idx(sp, idx); in srcu_readers_active_idx_check()
251 return srcu_readers_seq_idx(sp, idx) == seq; in srcu_readers_active_idx_check()
303 __this_cpu_inc(sp->per_cpu_ref->seq[idx]); in __srcu_read_lock()

12