/kernel/trace/ |
D | ring_buffer.c | 270 #define for_each_buffer_cpu(buffer, cpu) \ argument 271 for_each_cpu(cpu, buffer->cpumask) 446 struct ring_buffer *buffer; member 521 size_t ring_buffer_nr_pages(struct ring_buffer *buffer, int cpu) in ring_buffer_nr_pages() argument 523 return buffer->buffers[cpu]->nr_pages; in ring_buffer_nr_pages() 533 size_t ring_buffer_nr_dirty_pages(struct ring_buffer *buffer, int cpu) in ring_buffer_nr_dirty_pages() argument 538 read = local_read(&buffer->buffers[cpu]->pages_read); in ring_buffer_nr_dirty_pages() 539 cnt = local_read(&buffer->buffers[cpu]->pages_touched); in ring_buffer_nr_dirty_pages() 576 int ring_buffer_wait(struct ring_buffer *buffer, int cpu, int full) in ring_buffer_wait() argument 589 work = &buffer->irq_work; in ring_buffer_wait() [all …]
|
D | trace.c | 163 static void ftrace_trace_userstack(struct ring_buffer *buffer, 326 struct ring_buffer *buffer, in call_filter_check_discard() argument 331 __trace_event_discard_commit(buffer, event); in call_filter_check_discard() 559 if (kstrtoul(parser.buffer, 0, &val)) in trace_pid_write() 596 if (!buf->buffer) in buffer_ftrace_now() 599 ts = ring_buffer_time_stamp(buf->buffer, cpu); in buffer_ftrace_now() 600 ring_buffer_normalize_time_stamp(buf->buffer, cpu, &ts); in buffer_ftrace_now() 735 static void __ftrace_trace_stack(struct ring_buffer *buffer, 739 struct ring_buffer *buffer, 744 static inline void __ftrace_trace_stack(struct ring_buffer *buffer, in __ftrace_trace_stack() argument [all …]
|
D | ring_buffer_benchmark.c | 32 static struct ring_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_mmiotrace.c | 125 unsigned long over = ring_buffer_overruns(iter->trace_buffer->buffer); in count_overruns() 300 struct ring_buffer *buffer = tr->trace_buffer.buffer; in __trace_mmiotrace_rw() local 305 event = trace_buffer_lock_reserve(buffer, TRACE_MMIO_RW, in __trace_mmiotrace_rw() 314 if (!call_filter_check_discard(call, entry, buffer, event)) in __trace_mmiotrace_rw() 315 trace_buffer_unlock_commit(tr, buffer, event, 0, pc); in __trace_mmiotrace_rw() 330 struct ring_buffer *buffer = tr->trace_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, 0, pc); in __trace_mmiotrace_map()
|
D | trace.h | 178 struct ring_buffer *buffer; member 701 trace_buffer_lock_reserve(struct ring_buffer *buffer, 713 void trace_buffer_unlock_commit_nostack(struct ring_buffer *buffer, 858 int trace_array_printk_buf(struct ring_buffer *buffer, 1164 char *buffer; member 1352 struct ring_buffer *buffer, 1356 struct ring_buffer *buffer, 1362 struct ring_buffer *buffer, in trace_buffer_unlock_commit() argument 1366 trace_buffer_unlock_commit_regs(tr, buffer, event, flags, pc, NULL); in trace_buffer_unlock_commit() 1375 __trace_event_discard_commit(struct ring_buffer *buffer, in __trace_event_discard_commit() argument [all …]
|
D | trace_sched_wakeup.c | 381 struct ring_buffer *buffer = tr->trace_buffer.buffer; in tracing_sched_switch_trace() local 385 event = trace_buffer_lock_reserve(buffer, TRACE_CTX, in tracing_sched_switch_trace() 398 if (!call_filter_check_discard(call, entry, buffer, event)) in tracing_sched_switch_trace() 399 trace_buffer_unlock_commit(tr, buffer, event, flags, pc); in tracing_sched_switch_trace() 411 struct ring_buffer *buffer = tr->trace_buffer.buffer; in tracing_sched_wakeup_trace() local 413 event = trace_buffer_lock_reserve(buffer, TRACE_WAKE, in tracing_sched_wakeup_trace() 426 if (!call_filter_check_discard(call, entry, buffer, event)) in tracing_sched_wakeup_trace() 427 trace_buffer_unlock_commit(tr, buffer, event, flags, pc); in tracing_sched_wakeup_trace()
|
D | trace_branch.c | 38 struct ring_buffer *buffer; in probe_likely_condition() local 63 buffer = tr->trace_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_syscalls.c | 315 struct ring_buffer *buffer; in ftrace_syscall_enter() local 343 buffer = tr->trace_buffer.buffer; in ftrace_syscall_enter() 344 event = trace_buffer_lock_reserve(buffer, in ftrace_syscall_enter() 354 event_trigger_unlock_commit(trace_file, buffer, event, entry, in ftrace_syscall_enter() 365 struct ring_buffer *buffer; in ftrace_syscall_exit() local 389 buffer = tr->trace_buffer.buffer; in ftrace_syscall_exit() 390 event = trace_buffer_lock_reserve(buffer, in ftrace_syscall_exit() 400 event_trigger_unlock_commit(trace_file, buffer, event, entry, in ftrace_syscall_exit()
|
D | trace_functions_graph.c | 104 struct ring_buffer *buffer = tr->trace_buffer.buffer; in __trace_graph_entry() local 107 event = trace_buffer_lock_reserve(buffer, TRACE_GRAPH_ENT, in __trace_graph_entry() 113 if (!call_filter_check_discard(call, entry, buffer, event)) in __trace_graph_entry() 114 trace_buffer_unlock_commit_nostack(buffer, event); in __trace_graph_entry() 224 struct ring_buffer *buffer = tr->trace_buffer.buffer; in __trace_graph_return() local 227 event = trace_buffer_lock_reserve(buffer, TRACE_GRAPH_RET, in __trace_graph_return() 233 if (!call_filter_check_discard(call, entry, buffer, event)) in __trace_graph_return() 234 trace_buffer_unlock_commit_nostack(buffer, event); in __trace_graph_return() 447 ring_buffer_consume(iter->trace_buffer->buffer, iter->cpu, in get_return_for_leaf() 449 event = ring_buffer_peek(iter->trace_buffer->buffer, iter->cpu, in get_return_for_leaf() [all …]
|
D | trace_hwlat.c | 107 struct ring_buffer *buffer = tr->trace_buffer.buffer; in trace_hwlat_sample() local 116 event = trace_buffer_lock_reserve(buffer, TRACE_HWLAT, sizeof(*entry), in trace_hwlat_sample() 128 if (!call_filter_check_discard(call, entry, buffer, event)) in trace_hwlat_sample() 129 trace_buffer_unlock_commit_nostack(buffer, event); in trace_hwlat_sample()
|
/kernel/debug/kdb/ |
D | kdb_io.c | 35 static int kgdb_transition_check(char *buffer) in kgdb_transition_check() argument 37 if (buffer[0] != '+' && buffer[0] != '$') { in kgdb_transition_check() 39 kdb_printf("%s", buffer); in kgdb_transition_check() 41 int slen = strlen(buffer); in kgdb_transition_check() 42 if (slen > 3 && buffer[slen - 3] == '#') { in kgdb_transition_check() 43 kdb_gdb_state_pass(buffer); in kgdb_transition_check() 44 strcpy(buffer, "kgdb"); in kgdb_transition_check() 52 static int kdb_read_get_key(char *buffer, size_t bufsize) in kdb_read_get_key() argument 90 *buffer++ = key; in kdb_read_get_key() 91 *buffer = '\0'; in kdb_read_get_key() [all …]
|
D | kdb_bt.c | 84 char buffer[2]; in kdb_bt1() local 85 if (kdb_getarea(buffer[0], (unsigned long)p) || in kdb_bt1() 86 kdb_getarea(buffer[0], (unsigned long)(p+1)-1)) in kdb_bt1() 94 kdb_getstr(buffer, sizeof(buffer), in kdb_bt1() 96 if (buffer[0] == 'q') { in kdb_bt1()
|
/kernel/gcov/ |
D | gcc_4_7.c | 377 void *buffer; member 393 static size_t store_gcov_u32(void *buffer, size_t off, u32 v) in store_gcov_u32() argument 397 if (buffer) { in store_gcov_u32() 398 data = buffer + off; in store_gcov_u32() 417 static size_t store_gcov_u64(void *buffer, size_t off, u64 v) in store_gcov_u64() argument 421 if (buffer) { in store_gcov_u64() 422 data = buffer + off; in store_gcov_u64() 438 static size_t convert_to_gcda(char *buffer, struct gcov_info *info) in convert_to_gcda() argument 448 pos += store_gcov_u32(buffer, pos, GCOV_DATA_MAGIC); in convert_to_gcda() 449 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda() [all …]
|
D | clang.c | 390 void *buffer; member 406 static size_t store_gcov_u32(void *buffer, size_t off, u32 v) in store_gcov_u32() argument 410 if (buffer) { in store_gcov_u32() 411 data = buffer + off; in store_gcov_u32() 430 static size_t store_gcov_u64(void *buffer, size_t off, u64 v) in store_gcov_u64() argument 434 if (buffer) { in store_gcov_u64() 435 data = buffer + off; in store_gcov_u64() 451 static size_t convert_to_gcda(char *buffer, struct gcov_info *info) in convert_to_gcda() argument 457 pos += store_gcov_u32(buffer, pos, GCOV_DATA_MAGIC); in convert_to_gcda() 458 pos += store_gcov_u32(buffer, pos, info->version); in convert_to_gcda() [all …]
|
/kernel/ |
D | sysctl.c | 213 void __user *buffer, size_t *lenp, loff_t *ppos); 215 void __user *buffer, size_t *lenp, loff_t *ppos); 220 void __user *buffer, size_t *lenp, loff_t *ppos); 224 void __user *buffer, size_t *lenp, loff_t *ppos); 227 void __user *buffer, size_t *lenp, loff_t *ppos); 230 void __user *buffer, size_t *lenp, loff_t *ppos); 237 void __user *buffer, size_t *lenp, in sysrq_sysctl_handler() argument 242 error = proc_dointvec(table, write, buffer, lenp, ppos); in sysrq_sysctl_handler() 2010 char __user *buffer, in _proc_do_string() argument 2038 p = buffer; in _proc_do_string() [all …]
|
D | watchdog.c | 681 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_common() argument 693 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 696 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 708 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog() argument 711 table, write, buffer, lenp, ppos); in proc_watchdog() 718 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_nmi_watchdog() argument 723 table, write, buffer, lenp, ppos); in proc_nmi_watchdog() 730 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_soft_watchdog() argument 733 table, write, buffer, lenp, ppos); in proc_soft_watchdog() 740 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_watchdog_thresh() argument [all …]
|
D | kallsyms.c | 394 static int __sprint_symbol(char *buffer, unsigned long address, in __sprint_symbol() argument 403 name = kallsyms_lookup(address, &size, &offset, &modname, buffer); in __sprint_symbol() 405 return sprintf(buffer, "0x%lx", address - symbol_offset); in __sprint_symbol() 407 if (name != buffer) in __sprint_symbol() 408 strcpy(buffer, name); in __sprint_symbol() 409 len = strlen(buffer); in __sprint_symbol() 413 len += sprintf(buffer + len, "+%#lx/%#lx", offset, size); in __sprint_symbol() 416 len += sprintf(buffer + len, " [%s]", modname); in __sprint_symbol() 432 int sprint_symbol(char *buffer, unsigned long address) in sprint_symbol() argument 434 return __sprint_symbol(buffer, address, 0, 1); in sprint_symbol() [all …]
|
D | reboot.c | 316 char buffer[256]; in SYSCALL_DEFINE4() local 371 ret = strncpy_from_user(&buffer[0], arg, sizeof(buffer) - 1); in SYSCALL_DEFINE4() 376 buffer[sizeof(buffer) - 1] = '\0'; in SYSCALL_DEFINE4() 378 kernel_restart(buffer); in SYSCALL_DEFINE4()
|
D | params.c | 222 int param_get_##name(char *buffer, const struct kernel_param *kp) \ 224 return scnprintf(buffer, PAGE_SIZE, format "\n", \ 268 int param_get_charp(char *buffer, const struct kernel_param *kp) in param_get_charp() argument 270 return scnprintf(buffer, PAGE_SIZE, "%s\n", *((char **)kp->arg)); in param_get_charp() 298 int param_get_bool(char *buffer, const struct kernel_param *kp) in param_get_bool() argument 301 return sprintf(buffer, "%c\n", *(bool *)kp->arg ? 'Y' : 'N'); in param_get_bool() 358 int param_get_invbool(char *buffer, const struct kernel_param *kp) in param_get_invbool() argument 360 return sprintf(buffer, "%c\n", (*(bool *)kp->arg) ? 'N' : 'Y'); in param_get_invbool() 453 static int param_array_get(char *buffer, const struct kernel_param *kp) in param_array_get() argument 462 buffer[off - 1] = ','; in param_array_get() [all …]
|
D | sysctl_binary.c | 960 char *buffer; in bin_intvec() local 964 buffer = kmalloc(BUFSZ, GFP_KERNEL); in bin_intvec() 965 if (!buffer) in bin_intvec() 975 result = kernel_read(file, buffer, BUFSZ - 1, &pos); in bin_intvec() 979 str = buffer; in bin_intvec() 1006 str = buffer; in bin_intvec() 1018 result = kernel_write(file, buffer, str - buffer, &pos); in bin_intvec() 1024 kfree(buffer); in bin_intvec() 1033 char *buffer; in bin_ulongvec() local 1037 buffer = kmalloc(BUFSZ, GFP_KERNEL); in bin_ulongvec() [all …]
|
/kernel/power/ |
D | snapshot.c | 134 static void *buffer; variable 1391 safe_copy_page(buffer, s_page); in copy_data_page() 1393 copy_page(dst, buffer); in copy_data_page() 1504 buffer = NULL; in swsusp_free() 1900 buffer = get_image_page(GFP_ATOMIC, safe_needed); in get_highmem_buffer() 1901 return buffer ? 0 : -ENOMEM; in get_highmem_buffer() 2100 if (!buffer) { in snapshot_read_next() 2102 buffer = get_image_page(GFP_ATOMIC, PG_ANY); in snapshot_read_next() 2103 if (!buffer) in snapshot_read_next() 2109 error = init_header((struct swsusp_info *)buffer); in snapshot_read_next() [all …]
|
/kernel/irq/ |
D | proc.c | 116 const char __user *buffer, size_t count, loff_t *pos) in write_irq_affinity() argument 129 err = cpumask_parselist_user(buffer, count, new_value); in write_irq_affinity() 131 err = cpumask_parse_user(buffer, count, new_value); in write_irq_affinity() 158 const char __user *buffer, size_t count, loff_t *pos) in irq_affinity_proc_write() argument 160 return write_irq_affinity(0, file, buffer, count, pos); in irq_affinity_proc_write() 164 const char __user *buffer, size_t count, loff_t *pos) in irq_affinity_list_proc_write() argument 166 return write_irq_affinity(1, file, buffer, count, pos); in irq_affinity_list_proc_write() 214 const char __user *buffer, size_t count, loff_t *ppos) in default_affinity_write() argument 222 err = cpumask_parse_user(buffer, count, new_value); in default_affinity_write()
|
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() 710 int buffer[IRQ_TIMINGS_SIZE]; in irq_timings_test_next_index() local 737 buffer[i] = _buffer[index]; in irq_timings_test_next_index() 740 index = irq_timings_next_event_index(buffer, count, period_max); in irq_timings_test_next_index()
|
/kernel/printk/ |
D | printk_safe.c | 41 unsigned char buffer[SAFE_LOG_BUF_LEN]; member 79 if (len >= sizeof(s->buffer) - 1) { in printk_safe_log_store() 93 add = vscnprintf(s->buffer + len, sizeof(s->buffer) - len, fmt, ap); in printk_safe_log_store() 209 if ((i && i >= len) || len > sizeof(s->buffer)) { in __printk_safe_flush() 221 i += printk_safe_flush_buffer(s->buffer + i, len - i); in __printk_safe_flush()
|
/kernel/debug/ |
D | gdbstub.c | 91 static void get_packet(char *buffer) in get_packet() argument 120 buffer[count] = ch; in get_packet() 137 buffer[count] = 0; in get_packet() 145 static void put_packet(char *buffer) in put_packet() argument 159 while ((ch = buffer[count])) { in put_packet() 1117 unsigned char checksum, ch, buffer[3]; in gdbstub_exit() local 1127 buffer[0] = 'W'; in gdbstub_exit() 1128 buffer[1] = hex_asc_hi(status); in gdbstub_exit() 1129 buffer[2] = hex_asc_lo(status); in gdbstub_exit() 1135 ch = buffer[loop]; in gdbstub_exit()
|