/kernel/trace/ |
D | ring_buffer.c | 272 #define for_each_buffer_cpu(buffer, cpu) \ argument 273 for_each_cpu(cpu, buffer->cpumask) 275 #define for_each_online_buffer_cpu(buffer, cpu) \ argument 276 for_each_cpu_and(cpu, buffer->cpumask, cpu_online_mask) 462 struct trace_buffer *buffer; member 684 static inline bool has_ext_writer(struct trace_buffer *buffer) in has_ext_writer() argument 686 return !!buffer->ext_cb; in has_ext_writer() 691 return has_ext_writer(cpu_buffer->buffer); in rb_has_ext_writer() 754 static inline u64 rb_time_stamp(struct trace_buffer *buffer); 773 u64 ring_buffer_event_time_stamp(struct trace_buffer *buffer, in ring_buffer_event_time_stamp() argument [all …]
|
D | trace.c | 182 struct trace_buffer *buffer, 519 struct trace_buffer *buffer, in call_filter_check_discard() argument 524 __trace_event_discard_commit(buffer, event); in call_filter_check_discard() 737 if (kstrtoul(parser.buffer, 0, &val)) in trace_pid_write() 774 if (!buf->buffer) in buffer_ftrace_now() 777 ts = ring_buffer_time_stamp(buf->buffer); in buffer_ftrace_now() 778 ring_buffer_normalize_time_stamp(buf->buffer, cpu, &ts); in buffer_ftrace_now() 913 static void __ftrace_trace_stack(struct trace_buffer *buffer, 917 struct trace_buffer *buffer, 922 static inline void __ftrace_trace_stack(struct trace_buffer *buffer, in __ftrace_trace_stack() argument [all …]
|
D | ring_buffer_benchmark.c | 32 static struct trace_buffer *buffer; variable 91 event = ring_buffer_consume(buffer, cpu, &ts, NULL); in read_event() 116 bpage = ring_buffer_alloc_read_page(buffer, cpu); in read_page() 120 ret = ring_buffer_read_page(buffer, &bpage, PAGE_SIZE, cpu, 1); in read_page() 175 ring_buffer_free_read_page(buffer, cpu, bpage); in read_page() 254 event = ring_buffer_lock_reserve(buffer, 10); in ring_buffer_producer() 261 ring_buffer_unlock_commit(buffer, event); in ring_buffer_producer() 299 entries = ring_buffer_entries(buffer); in ring_buffer_producer() 300 overruns = ring_buffer_overruns(buffer); in ring_buffer_producer() 404 ring_buffer_reset(buffer); in ring_buffer_producer_thread() [all …]
|
D | trace_osnoise.c | 455 struct trace_buffer *buffer; \ 459 buffer = inst->tr->array_buffer.buffer; \ 460 trace_array_printk_buf(buffer, _THIS_IP_, msg); \ 470 __trace_osnoise_sample(struct osnoise_sample *sample, struct trace_buffer *buffer) in __trace_osnoise_sample() argument 476 event = trace_buffer_lock_reserve(buffer, TRACE_OSNOISE, sizeof(*entry), in __trace_osnoise_sample() 490 if (!call_filter_check_discard(call, entry, buffer, event)) in __trace_osnoise_sample() 491 trace_buffer_unlock_commit_nostack(buffer, event); in __trace_osnoise_sample() 500 struct trace_buffer *buffer; in trace_osnoise_sample() local 504 buffer = inst->tr->array_buffer.buffer; in trace_osnoise_sample() 505 __trace_osnoise_sample(sample, buffer); in trace_osnoise_sample() [all …]
|
D | trace_mmiotrace.c | 123 unsigned long over = ring_buffer_overruns(iter->array_buffer->buffer); in count_overruns() 298 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_mmiotrace_rw() local 304 event = trace_buffer_lock_reserve(buffer, TRACE_MMIO_RW, in __trace_mmiotrace_rw() 313 if (!call_filter_check_discard(call, entry, buffer, event)) in __trace_mmiotrace_rw() 314 trace_buffer_unlock_commit(tr, buffer, event, trace_ctx); in __trace_mmiotrace_rw() 329 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_mmiotrace_map() local 335 event = trace_buffer_lock_reserve(buffer, TRACE_MMIO_MAP, in __trace_mmiotrace_map() 344 if (!call_filter_check_discard(call, entry, buffer, event)) in __trace_mmiotrace_map() 345 trace_buffer_unlock_commit(tr, buffer, event, trace_ctx); in __trace_mmiotrace_map()
|
D | trace_events_hist.c | 88 struct trace_buffer *buffer, 203 struct trace_buffer *buffer, 209 struct trace_buffer *buffer, in hist_field_const() argument 218 struct trace_buffer *buffer, in hist_field_counter() argument 227 struct trace_buffer *buffer, in hist_field_string() argument 238 struct trace_buffer *buffer, in hist_field_dynstring() argument 251 struct trace_buffer *buffer, in hist_field_reldynstring() argument 265 struct trace_buffer *buffer, in hist_field_pstring() argument 276 struct trace_buffer *buffer, in hist_field_log2() argument 282 u64 val = hist_fn_call(operand, elt, buffer, rbe, event); in hist_field_log2() [all …]
|
D | trace_sched_wakeup.c | 380 struct trace_buffer *buffer = tr->array_buffer.buffer; in tracing_sched_switch_trace() local 384 event = trace_buffer_lock_reserve(buffer, TRACE_CTX, in tracing_sched_switch_trace() 397 if (!call_filter_check_discard(call, entry, buffer, event)) in tracing_sched_switch_trace() 398 trace_buffer_unlock_commit(tr, buffer, event, trace_ctx); in tracing_sched_switch_trace() 410 struct trace_buffer *buffer = tr->array_buffer.buffer; in tracing_sched_wakeup_trace() local 412 event = trace_buffer_lock_reserve(buffer, TRACE_WAKE, in tracing_sched_wakeup_trace() 425 if (!call_filter_check_discard(call, entry, buffer, event)) in tracing_sched_wakeup_trace() 426 trace_buffer_unlock_commit(tr, buffer, event, trace_ctx); in tracing_sched_wakeup_trace()
|
D | trace.h | 191 struct trace_buffer *buffer; member 405 extern u64 tracing_event_time_stamp(struct trace_buffer *buffer, struct ring_buffer_event *rbe); 609 trace_buffer_lock_reserve(struct trace_buffer *buffer, 620 void trace_buffer_unlock_commit_nostack(struct trace_buffer *buffer, 788 int trace_array_printk_buf(struct trace_buffer *buffer, 1130 char *buffer; member 1321 struct trace_buffer *buffer, 1325 struct trace_buffer *buffer, 1331 struct trace_buffer *buffer, in trace_buffer_unlock_commit() argument 1335 trace_buffer_unlock_commit_regs(tr, buffer, event, trace_ctx, NULL); in trace_buffer_unlock_commit() [all …]
|
D | trace_branch.c | 35 struct trace_buffer *buffer; in probe_likely_condition() local 63 buffer = tr->array_buffer.buffer; in probe_likely_condition() 64 event = trace_buffer_lock_reserve(buffer, TRACE_BRANCH, in probe_likely_condition() 85 if (!call_filter_check_discard(call, entry, buffer, event)) in probe_likely_condition() 86 trace_buffer_unlock_commit_nostack(buffer, event); in probe_likely_condition()
|
D | trace_events_trigger.c | 57 struct trace_buffer *buffer, void *rec, in event_triggers_call() argument 71 data->ops->trigger(data, buffer, rec, event); in event_triggers_call() 81 data->ops->trigger(data, buffer, rec, event); in event_triggers_call() 1252 struct trace_buffer *buffer, void *rec, in traceon_trigger() argument 1273 struct trace_buffer *buffer, void *rec, in traceon_count_trigger() argument 1300 struct trace_buffer *buffer, void *rec, in traceoff_trigger() argument 1321 struct trace_buffer *buffer, void *rec, in traceoff_count_trigger() argument 1428 struct trace_buffer *buffer, void *rec, in snapshot_trigger() argument 1441 struct trace_buffer *buffer, void *rec, in snapshot_count_trigger() argument 1450 snapshot_trigger(data, buffer, rec, event); in snapshot_count_trigger() [all …]
|
D | trace_functions_graph.c | 103 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_entry() local 106 event = trace_buffer_lock_reserve(buffer, TRACE_GRAPH_ENT, in __trace_graph_entry() 112 if (!call_filter_check_discard(call, entry, buffer, event)) in __trace_graph_entry() 113 trace_buffer_unlock_commit_nostack(buffer, event); in __trace_graph_entry() 222 struct trace_buffer *buffer = tr->array_buffer.buffer; in __trace_graph_return() local 225 event = trace_buffer_lock_reserve(buffer, TRACE_GRAPH_RET, in __trace_graph_return() 231 if (!call_filter_check_discard(call, entry, buffer, event)) in __trace_graph_return() 232 trace_buffer_unlock_commit_nostack(buffer, event); in __trace_graph_return() 445 ring_buffer_consume(iter->array_buffer->buffer, iter->cpu, in get_return_for_leaf() 447 event = ring_buffer_peek(iter->array_buffer->buffer, iter->cpu, in get_return_for_leaf() [all …]
|
/kernel/ |
D | sysctl-test.c | 36 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_null_tbl_data() local 47 KUNIT_PROC_READ, buffer, &len, in sysctl_test_api_dointvec_null_tbl_data() 56 KUNIT_PROC_WRITE, buffer, &len, in sysctl_test_api_dointvec_null_tbl_data() 82 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_maxlen_unset() local 93 KUNIT_PROC_READ, buffer, &len, in sysctl_test_api_dointvec_table_maxlen_unset() 102 KUNIT_PROC_WRITE, buffer, &len, in sysctl_test_api_dointvec_table_maxlen_unset() 125 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_len_is_zero() local 133 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_READ, buffer, in sysctl_test_api_dointvec_table_len_is_zero() 137 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&table, KUNIT_PROC_WRITE, buffer, in sysctl_test_api_dointvec_table_len_is_zero() 159 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_read_but_position_set() local [all …]
|
D | sysctl.c | 148 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument 174 p = buffer; in _proc_do_string() 175 while ((p - buffer) < *lenp && len < maxlen - 1) { in _proc_do_string() 198 memcpy(buffer, data, len); in _proc_do_string() 200 buffer[len] = '\n'; in _proc_do_string() 261 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument 266 return _proc_do_string(table->data, table->maxlen, write, buffer, lenp, in proc_dostring() 419 char **buffer = (char **)buf; in proc_put_char() local 420 **buffer = c; in proc_put_char() 423 (*buffer)++; in proc_put_char() [all …]
|
D | kallsyms.c | 513 static int __sprint_symbol(char *buffer, unsigned long address, in __sprint_symbol() argument 524 buffer); in __sprint_symbol() 526 return sprintf(buffer, "0x%lx", address - symbol_offset); in __sprint_symbol() 528 if (name != buffer) in __sprint_symbol() 529 strcpy(buffer, name); in __sprint_symbol() 530 len = strlen(buffer); in __sprint_symbol() 534 len += sprintf(buffer + len, "+%#lx/%#lx", offset, size); in __sprint_symbol() 537 len += sprintf(buffer + len, " [%s", modname); in __sprint_symbol() 544 len += sprintf(buffer + len, " %20phN", buildid); in __sprint_symbol() 547 len += sprintf(buffer + len, "]"); in __sprint_symbol() [all …]
|
D | watchdog.c | 669 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_common() argument 681 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 684 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 696 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog() argument 699 table, write, buffer, lenp, ppos); in proc_watchdog() 706 void *buffer, size_t *lenp, loff_t *ppos) in proc_nmi_watchdog() argument 711 table, write, buffer, lenp, ppos); in proc_nmi_watchdog() 718 void *buffer, size_t *lenp, loff_t *ppos) in proc_soft_watchdog() argument 721 table, write, buffer, lenp, ppos); in proc_soft_watchdog() 728 void *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_thresh() argument [all …]
|
D | params.c | 222 int param_get_##name(char *buffer, const struct kernel_param *kp) \ 224 return scnprintf(buffer, PAGE_SIZE, format "\n", \ 287 int param_get_charp(char *buffer, const struct kernel_param *kp) in param_get_charp() argument 289 return scnprintf(buffer, PAGE_SIZE, "%s\n", *((char **)kp->arg)); in param_get_charp() 317 int param_get_bool(char *buffer, const struct kernel_param *kp) in param_get_bool() argument 320 return sprintf(buffer, "%c\n", *(bool *)kp->arg ? 'Y' : 'N'); in param_get_bool() 377 int param_get_invbool(char *buffer, const struct kernel_param *kp) in param_get_invbool() argument 379 return sprintf(buffer, "%c\n", (*(bool *)kp->arg) ? 'N' : 'Y'); in param_get_invbool() 472 static int param_array_get(char *buffer, const struct kernel_param *kp) in param_array_get() argument 481 buffer[off - 1] = ','; in param_array_get() [all …]
|
/kernel/debug/kdb/ |
D | kdb_io.c | 34 static int kgdb_transition_check(char *buffer) in kgdb_transition_check() argument 36 if (buffer[0] != '+' && buffer[0] != '$') { in kgdb_transition_check() 38 kdb_printf("%s", buffer); in kgdb_transition_check() 40 int slen = strlen(buffer); in kgdb_transition_check() 41 if (slen > 3 && buffer[slen - 3] == '#') { in kgdb_transition_check() 42 kdb_gdb_state_pass(buffer); in kgdb_transition_check() 43 strcpy(buffer, "kgdb"); in kgdb_transition_check() 195 static char *kdb_read(char *buffer, size_t bufsize) in kdb_read() argument 197 char *cp = buffer; in kdb_read() 198 char *bufend = buffer+bufsize-2; /* Reserve space for newline in kdb_read() [all …]
|
/kernel/gcov/ |
D | gcc_4_7.c | 384 size_t convert_to_gcda(char *buffer, struct gcov_info *info) in convert_to_gcda() argument 394 pos += store_gcov_u32(buffer, pos, GCOV_DATA_MAGIC); in convert_to_gcda() 395 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda() 396 pos += store_gcov_u32(buffer, pos, info->stamp); in convert_to_gcda() 400 pos += store_gcov_u32(buffer, pos, 0); in convert_to_gcda() 407 pos += store_gcov_u32(buffer, pos, GCOV_TAG_FUNCTION); in convert_to_gcda() 408 pos += store_gcov_u32(buffer, pos, in convert_to_gcda() 410 pos += store_gcov_u32(buffer, pos, fi_ptr->ident); in convert_to_gcda() 411 pos += store_gcov_u32(buffer, pos, fi_ptr->lineno_checksum); in convert_to_gcda() 412 pos += store_gcov_u32(buffer, pos, fi_ptr->cfg_checksum); in convert_to_gcda() [all …]
|
D | clang.c | 368 size_t convert_to_gcda(char *buffer, struct gcov_info *info) in convert_to_gcda() argument 374 pos += store_gcov_u32(buffer, pos, GCOV_DATA_MAGIC); in convert_to_gcda() 375 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda() 376 pos += store_gcov_u32(buffer, pos, info->checksum); in convert_to_gcda() 381 pos += store_gcov_u32(buffer, pos, GCOV_TAG_FUNCTION); in convert_to_gcda() 382 pos += store_gcov_u32(buffer, pos, 3); in convert_to_gcda() 383 pos += store_gcov_u32(buffer, pos, fi_ptr->ident); in convert_to_gcda() 384 pos += store_gcov_u32(buffer, pos, fi_ptr->checksum); in convert_to_gcda() 385 pos += store_gcov_u32(buffer, pos, fi_ptr->cfg_checksum); in convert_to_gcda() 386 pos += store_gcov_u32(buffer, pos, GCOV_TAG_COUNTER_BASE); in convert_to_gcda() [all …]
|
D | base.c | 63 size_t store_gcov_u32(void *buffer, size_t off, u32 v) in store_gcov_u32() argument 67 if (buffer) { in store_gcov_u32() 68 data = buffer + off; in store_gcov_u32() 87 size_t store_gcov_u64(void *buffer, size_t off, u64 v) in store_gcov_u64() argument 91 if (buffer) { in store_gcov_u64() 92 data = buffer + off; in store_gcov_u64()
|
D | gcov.h | 51 size_t convert_to_gcda(char *buffer, struct gcov_info *info); 63 size_t store_gcov_u32(void *buffer, size_t off, u32 v); 64 size_t store_gcov_u64(void *buffer, size_t off, u64 v);
|
/kernel/power/ |
D | snapshot.c | 167 static void *buffer; variable 1449 zeros_only = safe_copy_page(buffer, s_page); in copy_data_page() 1451 copy_page(dst, buffer); in copy_data_page() 1586 buffer = NULL; in swsusp_free() 1990 buffer = get_image_page(GFP_ATOMIC, safe_needed); in get_highmem_buffer() 1991 return buffer ? 0 : -ENOMEM; in get_highmem_buffer() 2198 if (!buffer) { in snapshot_read_next() 2200 buffer = get_image_page(GFP_ATOMIC, PG_ANY); in snapshot_read_next() 2201 if (!buffer) in snapshot_read_next() 2207 error = init_header((struct swsusp_info *)buffer); in snapshot_read_next() [all …]
|
/kernel/irq/ |
D | timings.c | 317 static int irq_timings_next_event_index(int *buffer, size_t len, int period_max) in irq_timings_next_event_index() argument 325 buffer = &buffer[len - (period_max * 3)]; in irq_timings_next_event_index() 354 while (!memcmp(buffer, &buffer[idx], size * sizeof(int))) { in irq_timings_next_event_index() 367 return buffer[len % period]; in irq_timings_next_event_index() 715 int buffer[IRQ_TIMINGS_SIZE]; in irq_timings_test_next_index() local 742 buffer[i] = _buffer[index]; in irq_timings_test_next_index() 745 index = irq_timings_next_event_index(buffer, count, period_max); in irq_timings_test_next_index()
|
D | proc.c | 138 const char __user *buffer, size_t count, loff_t *pos) in write_irq_affinity() argument 151 err = cpumask_parselist_user(buffer, count, new_value); in write_irq_affinity() 153 err = cpumask_parse_user(buffer, count, new_value); in write_irq_affinity() 180 const char __user *buffer, size_t count, loff_t *pos) in irq_affinity_proc_write() argument 182 return write_irq_affinity(0, file, buffer, count, pos); in irq_affinity_proc_write() 186 const char __user *buffer, size_t count, loff_t *pos) in irq_affinity_list_proc_write() argument 188 return write_irq_affinity(1, file, buffer, count, pos); in irq_affinity_list_proc_write() 236 const char __user *buffer, size_t count, loff_t *ppos) in default_affinity_write() argument 244 err = cpumask_parse_user(buffer, count, new_value); in default_affinity_write()
|
/kernel/debug/ |
D | gdbstub.c | 88 static void get_packet(char *buffer) in get_packet() argument 117 buffer[count] = ch; in get_packet() 134 buffer[count] = 0; in get_packet() 142 static void put_packet(char *buffer) in put_packet() argument 156 while ((ch = buffer[count])) { in put_packet() 1126 unsigned char checksum, ch, buffer[3]; in gdbstub_exit() local 1136 buffer[0] = 'W'; in gdbstub_exit() 1137 buffer[1] = hex_asc_hi(status); in gdbstub_exit() 1138 buffer[2] = hex_asc_lo(status); in gdbstub_exit() 1144 ch = buffer[loop]; in gdbstub_exit()
|