/kernel/trace/ |
D | ring_buffer.c | 203 #define for_each_buffer_cpu(buffer, cpu) \ argument 204 for_each_cpu(cpu, buffer->cpumask) 256 struct ring_buffer *buffer; member 292 #define RB_WARN_ON(buffer, cond) \ argument 296 atomic_inc(&buffer->record_disabled); \ 369 rb_allocate_cpu_buffer(struct ring_buffer *buffer, int cpu) in rb_allocate_cpu_buffer() argument 382 cpu_buffer->buffer = buffer; in rb_allocate_cpu_buffer() 401 ret = rb_allocate_pages(cpu_buffer, buffer->pages); in rb_allocate_cpu_buffer() 452 struct ring_buffer *buffer; in ring_buffer_alloc() local 462 buffer = kzalloc(ALIGN(sizeof(*buffer), cache_line_size()), in ring_buffer_alloc() [all …]
|
D | trace.c | 354 ret = vsnprintf(s->buffer + s->len, len, fmt, ap); in trace_seq_printf() 384 memcpy(s->buffer + s->len, str, len); in trace_seq_puts() 396 s->buffer[s->len++] = c; in trace_seq_putc() 407 memcpy(s->buffer + s->len, mem, len); in trace_seq_putmem() 443 p = d_path(path, s->buffer + s->len, PAGE_SIZE - s->len); 445 p = mangle_path(s->buffer + s->len, p, "\n"); 447 s->len = p - s->buffer; 451 s->buffer[s->len++] = '?'; 476 ret = copy_to_user(ubuf, s->buffer + s->readpos, cnt); 489 s->buffer[len] = 0; [all …]
|
D | trace_boot.c | 143 event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry), in trace_boot_call() 151 ring_buffer_unlock_commit(tr->buffer, event, irq_flags); in trace_boot_call() 172 event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry), in trace_boot_ret() 180 ring_buffer_unlock_commit(tr->buffer, event, irq_flags); in trace_boot_ret()
|
D | trace_power.c | 127 event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry), in trace_power_end() 135 ring_buffer_unlock_commit(tr->buffer, event, irq_flags); in trace_power_end() 164 event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry), in trace_power_mark() 172 ring_buffer_unlock_commit(tr->buffer, event, irq_flags); in trace_power_mark()
|
D | trace_hw_branches.c | 22 static DEFINE_PER_CPU(unsigned char[SIZEOF_BTS], buffer); 25 #define this_buffer per_cpu(buffer, smp_processor_id()) 112 event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry), &irq); in trace_hw_branch() 121 ring_buffer_unlock_commit(tr->buffer, event, irq); in trace_hw_branch()
|
D | trace_mmiotrace.c | 127 unsigned long over = ring_buffer_overruns(iter->tr->buffer); in count_overruns() 313 event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry), in __trace_mmiotrace_rw() 323 ring_buffer_unlock_commit(tr->buffer, event, irq_flags); in __trace_mmiotrace_rw() 343 event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry), in __trace_mmiotrace_map() 353 ring_buffer_unlock_commit(tr->buffer, event, irq_flags); in __trace_mmiotrace_map()
|
D | ftrace.c | 792 unsigned char buffer[FTRACE_BUFF_MAX+1]; member 1175 iter->buffer[iter->buffer_idx++] = ch; in ftrace_regex_write() 1189 iter->buffer[iter->buffer_idx] = 0; in ftrace_regex_write() 1190 ftrace_match(iter->buffer, iter->buffer_idx, enable); in ftrace_regex_write() 1278 iter->buffer[iter->buffer_idx] = 0; in ftrace_regex_release() 1279 ftrace_match(iter->buffer, iter->buffer_idx, enable); in ftrace_regex_release() 1434 ftrace_set_func(unsigned long *array, int idx, char *buffer) in ftrace_set_func() argument 1456 if (strcmp(str, buffer) == 0) { in ftrace_set_func() 1478 unsigned char buffer[FTRACE_BUFF_MAX+1]; in ftrace_graph_write() local 1524 buffer[index++] = ch; in ftrace_graph_write() [all …]
|
D | trace_branch.c | 50 event = ring_buffer_lock_reserve(tr->buffer, sizeof(*entry), in probe_likely_condition() 73 ring_buffer_unlock_commit(tr->buffer, event, irq_flags); in probe_likely_condition()
|
D | trace_stack.c | 304 struct file *file, void __user *buffer, size_t *lenp, in stack_trace_sysctl() argument 311 ret = proc_dointvec(table, write, file, buffer, lenp, ppos); in stack_trace_sysctl()
|
D | trace_selftest.c | 28 while ((event = ring_buffer_consume(tr->buffer, cpu, NULL))) { in trace_test_buffer_cpu() 68 cnt = ring_buffer_entries(tr->buffer); in trace_test_buffer()
|
D | trace.h | 226 struct ring_buffer *buffer; member 346 unsigned char buffer[PAGE_SIZE]; member
|
/kernel/ |
D | kfifo.c | 39 struct kfifo *kfifo_init(unsigned char *buffer, unsigned int size, in kfifo_init() argument 51 fifo->buffer = buffer; in kfifo_init() 70 unsigned char *buffer; in kfifo_alloc() local 82 buffer = kmalloc(size, gfp_mask); in kfifo_alloc() 83 if (!buffer) in kfifo_alloc() 86 ret = kfifo_init(buffer, size, gfp_mask, lock); in kfifo_alloc() 89 kfree(buffer); in kfifo_alloc() 101 kfree(fifo->buffer); in kfifo_free() 120 unsigned char *buffer, unsigned int len) in __kfifo_put() argument 135 memcpy(fifo->buffer + (fifo->in & (fifo->size - 1)), buffer, l); in __kfifo_put() [all …]
|
D | kallsyms.c | 302 int sprint_symbol(char *buffer, unsigned long address) in sprint_symbol() argument 309 name = kallsyms_lookup(address, &size, &offset, &modname, buffer); in sprint_symbol() 311 return sprintf(buffer, "0x%lx", address); in sprint_symbol() 313 if (name != buffer) in sprint_symbol() 314 strcpy(buffer, name); in sprint_symbol() 315 len = strlen(buffer); in sprint_symbol() 316 buffer += len; in sprint_symbol() 319 len += sprintf(buffer, "+%#lx/%#lx [%s]", in sprint_symbol() 322 len += sprintf(buffer, "+%#lx/%#lx", offset, size); in sprint_symbol() 330 char buffer[KSYM_SYMBOL_LEN]; in __print_symbol() local [all …]
|
D | params.c | 193 int param_get_##name(char *buffer, struct kernel_param *kp) \ 195 return sprintf(buffer, format, *((type *)kp->arg)); \ 224 int param_get_charp(char *buffer, struct kernel_param *kp) in param_get_charp() argument 226 return sprintf(buffer, "%s", *((char **)kp->arg)); in param_get_charp() 246 int param_get_bool(char *buffer, struct kernel_param *kp) in param_get_bool() argument 249 return sprintf(buffer, "%c", (*(int *)kp->arg) ? 'Y' : 'N'); in param_get_bool() 264 int param_get_invbool(char *buffer, struct kernel_param *kp) in param_get_invbool() argument 266 return sprintf(buffer, "%c", (*(int *)kp->arg) ? 'N' : 'Y'); in param_get_invbool() 332 int param_array_get(char *buffer, struct kernel_param *kp) in param_array_get() argument 341 buffer[off++] = ','; in param_array_get() [all …]
|
D | sysctl.c | 158 void __user *buffer, size_t *lenp, loff_t *ppos); 160 void __user *buffer, size_t *lenp, loff_t *ppos); 2098 struct file *filp, void __user *buffer, in _proc_do_string() argument 2112 p = buffer; in _proc_do_string() 2122 if(copy_from_user(data, buffer, len)) in _proc_do_string() 2142 if(copy_to_user(buffer, data, len)) in _proc_do_string() 2145 if(put_user('\n', ((char __user *) buffer) + len)) in _proc_do_string() 2174 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument 2177 buffer, lenp, ppos); in proc_dostring() 2201 int write, struct file *filp, void __user *buffer, in __do_proc_dointvec() argument [all …]
|
D | rcupreempt_trace.c | 173 static ssize_t rcustats_read(struct file *filp, char __user *buffer, in rcustats_read() argument 205 bcount = simple_read_from_buffer(buffer, count, ppos, in rcustats_read() 211 static ssize_t rcugp_read(struct file *filp, char __user *buffer, in rcugp_read() argument 221 bcount = simple_read_from_buffer(buffer, count, ppos, in rcugp_read() 227 static ssize_t rcuctrs_read(struct file *filp, char __user *buffer, in rcuctrs_read() argument 258 bcount = simple_read_from_buffer(buffer, count, ppos, in rcuctrs_read()
|
D | cgroup_freezer.c | 343 const char *buffer) in freezer_write() argument 348 if (strcmp(buffer, freezer_state_strs[CGROUP_THAWED]) == 0) in freezer_write() 350 else if (strcmp(buffer, freezer_state_strs[CGROUP_FROZEN]) == 0) in freezer_write()
|
D | utsname_sysctl.c | 46 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_do_uts_string() argument 52 r = proc_dostring(&uts_table,write,filp,buffer,lenp, ppos); in proc_do_uts_string()
|
D | cgroup.c | 1360 const char *buffer) in cgroup_release_agent_write() argument 1365 strcpy(cgrp->root->release_agent_path, buffer); in cgroup_release_agent_write() 1389 char buffer[CGROUP_LOCAL_BUFFER_SIZE]; in cgroup_write_X64() local 1395 if (nbytes >= sizeof(buffer)) in cgroup_write_X64() 1397 if (copy_from_user(buffer, userbuf, nbytes)) in cgroup_write_X64() 1400 buffer[nbytes] = 0; /* nul-terminate */ in cgroup_write_X64() 1401 strstrip(buffer); in cgroup_write_X64() 1403 u64 val = simple_strtoull(buffer, &end, 0); in cgroup_write_X64() 1408 s64 val = simple_strtoll(buffer, &end, 0); in cgroup_write_X64() 1426 char *buffer = local_buffer; in cgroup_write_string() local [all …]
|
D | softlockup.c | 93 struct file *filp, void __user *buffer, in proc_dosoftlockup_thresh() argument 97 return proc_dointvec_minmax(table, write, filp, buffer, lenp, ppos); in proc_dosoftlockup_thresh()
|
D | kgdb.c | 257 static void get_packet(char *buffer) in get_packet() argument 286 buffer[count] = ch; in get_packet() 289 buffer[count] = 0; in get_packet() 311 static void put_packet(char *buffer) in put_packet() argument 325 while ((ch = buffer[count])) { in put_packet()
|
D | sys.c | 361 char buffer[256]; in SYSCALL_DEFINE4() local 408 if (strncpy_from_user(&buffer[0], arg, sizeof(buffer) - 1) < 0) { in SYSCALL_DEFINE4() 412 buffer[sizeof(buffer) - 1] = '\0'; in SYSCALL_DEFINE4() 414 kernel_restart(buffer); in SYSCALL_DEFINE4()
|
/kernel/power/ |
D | snapshot.c | 50 static void *buffer; variable 983 safe_copy_page(buffer, s_page); in copy_data_page() 985 memcpy(dst, buffer, PAGE_SIZE); in copy_data_page() 1061 buffer = NULL; in swsusp_free() 1117 buffer = get_image_page(GFP_ATOMIC | __GFP_COLD, safe_needed); in get_highmem_buffer() 1118 return buffer ? 0 : -ENOMEM; in get_highmem_buffer() 1339 if (!buffer) { in snapshot_read_next() 1341 buffer = get_image_page(GFP_ATOMIC, PG_ANY); in snapshot_read_next() 1342 if (!buffer) in snapshot_read_next() 1348 error = init_header((struct swsusp_info *)buffer); in snapshot_read_next() [all …]
|
D | power.h | 112 void *buffer; /* address of the block to read from member 128 #define data_of(handle) ((handle).buffer + (handle).buf_offset)
|
/kernel/irq/ |
D | proc.c | 40 const char __user *buffer, size_t count, loff_t *pos) in irq_affinity_proc_write() argument 53 err = cpumask_parse_user(buffer, count, new_value); in irq_affinity_proc_write() 102 const char __user *buffer, size_t count, loff_t *ppos) in default_affinity_write() argument 110 err = cpumask_parse_user(buffer, count, new_value); in default_affinity_write()
|