Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 29) sorted by relevance

12

/kernel/
Dcompat.c171 int put_compat_rusage(const struct rusage *r, struct compat_rusage __user *ru) in put_compat_rusage() argument
175 r32.ru_utime.tv_sec = r->ru_utime.tv_sec; in put_compat_rusage()
176 r32.ru_utime.tv_usec = r->ru_utime.tv_usec; in put_compat_rusage()
177 r32.ru_stime.tv_sec = r->ru_stime.tv_sec; in put_compat_rusage()
178 r32.ru_stime.tv_usec = r->ru_stime.tv_usec; in put_compat_rusage()
179 r32.ru_maxrss = r->ru_maxrss; in put_compat_rusage()
180 r32.ru_ixrss = r->ru_ixrss; in put_compat_rusage()
181 r32.ru_idrss = r->ru_idrss; in put_compat_rusage()
182 r32.ru_isrss = r->ru_isrss; in put_compat_rusage()
183 r32.ru_minflt = r->ru_minflt; in put_compat_rusage()
[all …]
Dcfi.c54 struct shadow_range r; member
67 if (unlikely(page < s->r.min_page)) in ptr_to_shadow()
70 index = page - s->r.min_page; in ptr_to_shadow()
87 return (s->r.min_page + s->shadow[index]) << PAGE_SHIFT; in shadow_to_ptr()
96 return (s->r.min_page + index) << PAGE_SHIFT; in shadow_to_page()
111 if (prev->r.min_page == next->r.min_page) { in prepare_next_shadow()
193 next->r.mod_min_addr = min_addr; in update_shadow()
194 next->r.mod_max_addr = max_addr; in update_shadow()
195 next->r.min_page = min_addr >> PAGE_SHIFT; in update_shadow()
196 next->r.max_page = max_addr >> PAGE_SHIFT; in update_shadow()
[all …]
Dsys.c1406 struct rlimit r; in COMPAT_SYSCALL_DEFINE2() local
1413 r.rlim_cur = RLIM_INFINITY; in COMPAT_SYSCALL_DEFINE2()
1415 r.rlim_cur = r32.rlim_cur; in COMPAT_SYSCALL_DEFINE2()
1417 r.rlim_max = RLIM_INFINITY; in COMPAT_SYSCALL_DEFINE2()
1419 r.rlim_max = r32.rlim_max; in COMPAT_SYSCALL_DEFINE2()
1420 return do_prlimit(current, resource, &r, NULL); in COMPAT_SYSCALL_DEFINE2()
1426 struct rlimit r; in COMPAT_SYSCALL_DEFINE2() local
1429 ret = do_prlimit(current, resource, NULL, &r); in COMPAT_SYSCALL_DEFINE2()
1432 if (r.rlim_cur > COMPAT_RLIM_INFINITY) in COMPAT_SYSCALL_DEFINE2()
1435 r32.rlim_cur = r.rlim_cur; in COMPAT_SYSCALL_DEFINE2()
[all …]
Daudit_watch.c226 static void audit_watch_log_rule_change(struct audit_krule *r, struct audit_watch *w, char *op) in audit_watch_log_rule_change() argument
238 audit_log_key(ab, r->filterkey); in audit_watch_log_rule_change()
239 audit_log_format(ab, " list=%d res=1", r->listnr); in audit_watch_log_rule_change()
249 struct audit_krule *r, *nextr; in audit_update_watch() local
276 list_for_each_entry_safe(r, nextr, &owatch->rules, rlist) { in audit_update_watch()
278 oentry = container_of(r, struct audit_entry, rule); in audit_update_watch()
324 struct audit_krule *r, *nextr; in audit_remove_parent_watches() local
329 list_for_each_entry_safe(r, nextr, &w->rules, rlist) { in audit_remove_parent_watches()
330 e = container_of(r, struct audit_entry, rule); in audit_remove_parent_watches()
331 audit_watch_log_rule_change(r, w, "remove_rule"); in audit_remove_parent_watches()
[all …]
Dauditfilter.c1072 struct audit_krule *r; in audit_list_rules() local
1078 list_for_each_entry(r, &audit_rules_list[i], list) { in audit_list_rules()
1081 data = audit_krule_to_data(r); in audit_list_rules()
1391 static int update_lsm_rule(struct audit_krule *r) in update_lsm_rule() argument
1393 struct audit_entry *entry = container_of(r, struct audit_entry, rule); in update_lsm_rule()
1397 if (!security_audit_rule_known(r)) in update_lsm_rule()
1400 nentry = audit_dupe_rule(r); in update_lsm_rule()
1408 if (r->watch) in update_lsm_rule()
1409 list_del(&r->rlist); in update_lsm_rule()
1411 list_del(&r->list); in update_lsm_rule()
[all …]
Dcrash_core.c353 size_t r; in vmcoreinfo_append_str() local
356 r = vscnprintf(buf, sizeof(buf), fmt, args); in vmcoreinfo_append_str()
359 r = min(r, (size_t)VMCOREINFO_BYTES - vmcoreinfo_size); in vmcoreinfo_append_str()
361 memcpy(&vmcoreinfo_data[vmcoreinfo_size], buf, r); in vmcoreinfo_append_str()
363 vmcoreinfo_size += r; in vmcoreinfo_append_str()
Dutsname_sysctl.c36 int r; in proc_do_uts_string() local
51 r = proc_dostring(&uts_table, write, buffer, lenp, ppos); in proc_do_uts_string()
66 return r; in proc_do_uts_string()
Dresource.c108 struct resource *r = v, *p; in r_show() local
113 for (depth = 0, p = r; depth < MAX_IORES_LEVEL; depth++, p = p->parent) in r_show()
118 start = r->start; in r_show()
119 end = r->end; in r_show()
128 r->name ? r->name : "<BAD>"); in r_show()
242 static void __release_child_resources(struct resource *r) in __release_child_resources() argument
247 p = r->child; in __release_child_resources()
248 r->child = NULL; in __release_child_resources()
265 void release_child_resources(struct resource *r) in release_child_resources() argument
268 __release_child_resources(r); in release_child_resources()
[all …]
Dexit.c1634 struct rusage r; in SYSCALL_DEFINE5() local
1636 long err = kernel_waitid(which, upid, &info, options, ru ? &r : NULL); in SYSCALL_DEFINE5()
1642 if (ru && copy_to_user(ru, &r, sizeof(struct rusage))) in SYSCALL_DEFINE5()
1710 struct rusage r; in SYSCALL_DEFINE4() local
1711 long err = kernel_wait4(upid, stat_addr, options, ru ? &r : NULL); in SYSCALL_DEFINE4()
1714 if (ru && copy_to_user(ru, &r, sizeof(struct rusage))) in SYSCALL_DEFINE4()
1740 struct rusage r; in COMPAT_SYSCALL_DEFINE4() local
1741 long err = kernel_wait4(pid, stat_addr, options, ru ? &r : NULL); in COMPAT_SYSCALL_DEFINE4()
1743 if (ru && put_compat_rusage(&r, ru)) in COMPAT_SYSCALL_DEFINE4()
Dsysctl.c3184 int r; in proc_do_cad_pid() local
3188 r = __do_proc_dointvec(&tmp, table, write, buffer, in proc_do_cad_pid()
3190 if (r || !write) in proc_do_cad_pid()
3191 return r; in proc_do_cad_pid()
/kernel/time/
Dsched_clock.c172 unsigned long r; in sched_clock_register() local
214 r = rate; in sched_clock_register()
215 if (r >= 4000000) { in sched_clock_register()
216 r /= 1000000; in sched_clock_register()
219 if (r >= 1000) { in sched_clock_register()
220 r /= 1000; in sched_clock_register()
231 bits, r, r_unit, res, wrap); in sched_clock_register()
/kernel/trace/
Dtrace_events_filter.c762 static int regex_match_full(char *str, struct regex *r, int len) in regex_match_full() argument
766 return strcmp(str, r->pattern) == 0; in regex_match_full()
768 return strncmp(str, r->pattern, len) == 0; in regex_match_full()
771 static int regex_match_front(char *str, struct regex *r, int len) in regex_match_front() argument
773 if (len && len < r->len) in regex_match_front()
776 return strncmp(str, r->pattern, r->len) == 0; in regex_match_front()
779 static int regex_match_middle(char *str, struct regex *r, int len) in regex_match_middle() argument
782 return strstr(str, r->pattern) != NULL; in regex_match_middle()
784 return strnstr(str, r->pattern, len) != NULL; in regex_match_middle()
787 static int regex_match_end(char *str, struct regex *r, int len) in regex_match_end() argument
[all …]
Dtrace_stack.c330 int r; in stack_max_size_read() local
332 r = snprintf(buf, sizeof(buf), "%ld\n", *ptr); in stack_max_size_read()
333 if (r > sizeof(buf)) in stack_max_size_read()
334 r = sizeof(buf); in stack_max_size_read()
335 return simple_read_from_buffer(ubuf, count, ppos, buf, r); in stack_max_size_read()
Dblktrace.c1059 struct blk_io_trace_remap r; in blk_add_trace_bio_remap() local
1068 r.device_from = cpu_to_be32(dev); in blk_add_trace_bio_remap()
1069 r.device_to = cpu_to_be32(bio_dev(bio)); in blk_add_trace_bio_remap()
1070 r.sector_from = cpu_to_be64(from); in blk_add_trace_bio_remap()
1075 sizeof(r), &r, blk_trace_bio_get_cgid(q, bio)); in blk_add_trace_bio_remap()
1098 struct blk_io_trace_remap r; in blk_add_trace_rq_remap() local
1107 r.device_from = cpu_to_be32(dev); in blk_add_trace_rq_remap()
1108 r.device_to = cpu_to_be32(disk_devt(rq->rq_disk)); in blk_add_trace_rq_remap()
1109 r.sector_from = cpu_to_be64(from); in blk_add_trace_rq_remap()
1113 sizeof(r), &r, blk_trace_request_get_cgid(q, rq)); in blk_add_trace_rq_remap()
Dtrace.c5274 int r; in tracing_saved_cmdlines_size_read() local
5278 r = scnprintf(buf, sizeof(buf), "%u\n", savedcmd->cmdline_num); in tracing_saved_cmdlines_size_read()
5282 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); in tracing_saved_cmdlines_size_read()
5519 int r; in tracing_set_trace_read() local
5522 r = sprintf(buf, "%s\n", tr->current_trace->name); in tracing_set_trace_read()
5525 return simple_read_from_buffer(ubuf, cnt, ppos, buf, r); in tracing_set_trace_read()
5596 int r = resize_buffer_duplicate_size(&tr->trace_buffer, in __tracing_resize_ring_buffer() local
5598 if (r < 0) { in __tracing_resize_ring_buffer()
5868 int r; in tracing_nsecs_read() local
5870 r = snprintf(buf, sizeof(buf), "%ld\n", in tracing_nsecs_read()
[all …]
Dtrace_events.c1329 int r = -ENODEV; in event_filter_read() local
1348 r = simple_read_from_buffer(ubuf, cnt, ppos, in event_filter_read()
1353 return r; in event_filter_read()
1486 int r; in subsystem_filter_read() local
1498 r = simple_read_from_buffer(ubuf, cnt, ppos, in subsystem_filter_read()
1503 return r; in subsystem_filter_read()
1536 int r; in show_header() local
1548 r = simple_read_from_buffer(ubuf, cnt, ppos, in show_header()
1553 return r; in show_header()
/kernel/sched/
Dcpudeadline.c28 int l, r, largest; in cpudl_heapify_down() local
41 r = right_child(idx); in cpudl_heapify_down()
50 if ((r < cp->size) && dl_time_before(largest_dl, in cpudl_heapify_down()
51 cp->elements[r].dl)) in cpudl_heapify_down()
52 largest = r; in cpudl_heapify_down()
/kernel/printk/
Dprintk.c812 int r; in devkmsg_emit() local
815 r = vprintk_emit(facility, level, NULL, 0, fmt, args); in devkmsg_emit()
818 return r; in devkmsg_emit()
2053 int r; in vprintk_default() local
2058 r = vkdb_printf(KDB_MSGSRC_PRINTK, fmt, args); in vprintk_default()
2059 return r; in vprintk_default()
2062 r = vprintk_emit(0, LOGLEVEL_DEFAULT, NULL, 0, fmt, args); in vprintk_default()
2064 return r; in vprintk_default()
2092 int r; in printk() local
2095 r = vprintk_func(fmt, args); in printk()
[all …]
/kernel/locking/
Dtest-ww_mutex.c352 int n, r, tmp; in get_random_order() local
362 r = get_random_int() % (n + 1); in get_random_order()
363 if (r != n) { in get_random_order()
365 order[n] = order[r]; in get_random_order()
366 order[r] = tmp; in get_random_order()
Dlockdep_proc.c357 static int lock_stat_cmp(const void *l, const void *r) in lock_stat_cmp() argument
359 const struct lock_stat_data *dl = l, *dr = r; in lock_stat_cmp()
/kernel/irq/
Dspurious.c176 unsigned int r = action_ret; in bad_action_ret() local
178 if (likely(r <= (IRQ_HANDLED | IRQ_WAKE_THREAD))) in bad_action_ret()
Daffinity.c107 static int ncpus_cmp_func(const void *l, const void *r) in ncpus_cmp_func() argument
110 const struct node_vectors *rn = r; in ncpus_cmp_func()
/kernel/debug/kdb/
Dkdb_io.c862 int r; in kdb_printf() local
865 r = vkdb_printf(KDB_MSGSRC_INTERNAL, fmt, ap); in kdb_printf()
868 return r; in kdb_printf()
/kernel/events/
Duprobes.c622 static int match_uprobe(struct uprobe *l, struct uprobe *r) in match_uprobe() argument
624 if (l->inode < r->inode) in match_uprobe()
627 if (l->inode > r->inode) in match_uprobe()
630 if (l->offset < r->offset) in match_uprobe()
633 if (l->offset > r->offset) in match_uprobe()
/kernel/rcu/
Dupdate.c848 static void test_callback(struct rcu_head *r) in test_callback() argument

12