/kernel/sched/ |
D | cputime.c | 116 static inline void task_group_account_field(struct task_struct *p, int index, in task_group_account_field() argument 125 __get_cpu_var(kernel_cpustat).cpustat[index] += tmp; in task_group_account_field() 127 cpuacct_account_field(p, index, tmp); in task_group_account_field() 139 int index; in account_user_time() local 146 index = (TASK_NICE(p) > 0) ? CPUTIME_NICE : CPUTIME_USER; in account_user_time() 149 task_group_account_field(p, index, (__force u64) cputime); in account_user_time() 196 cputime_t cputime_scaled, int index) in __account_system_time() argument 204 task_group_account_field(p, index, (__force u64) cputime); in __account_system_time() 225 int index; in account_system_time() local 233 index = CPUTIME_IRQ; in account_system_time() [all …]
|
D | cpuacct.h | 4 extern void cpuacct_account_field(struct task_struct *p, int index, u64 val); 13 cpuacct_account_field(struct task_struct *p, int index, u64 val) in cpuacct_account_field() argument
|
D | cpuacct.c | 274 void cpuacct_account_field(struct task_struct *p, int index, u64 val) in cpuacct_account_field() argument 283 kcpustat->cpustat[index] += val; in cpuacct_account_field()
|
/kernel/power/ |
D | main.c | 160 int i, index, last_dev, last_errno, last_step; in suspend_stats_show() local 187 index = last_dev + REC_FAILED_NUM - i; in suspend_stats_show() 188 index %= REC_FAILED_NUM; in suspend_stats_show() 190 suspend_stats.failed_devs[index]); in suspend_stats_show() 195 index = last_errno + REC_FAILED_NUM - i; in suspend_stats_show() 196 index %= REC_FAILED_NUM; in suspend_stats_show() 198 suspend_stats.errno[index]); in suspend_stats_show() 204 index = last_step + REC_FAILED_NUM - i; in suspend_stats_show() 205 index %= REC_FAILED_NUM; in suspend_stats_show() 208 suspend_stats.failed_steps[index])); in suspend_stats_show()
|
/kernel/ |
D | timer.c | 1069 static int cascade(struct tvec_base *base, struct tvec *tv, int index) in cascade() argument 1075 list_replace_init(tv->vec + index, &tv_list); in cascade() 1087 return index; in cascade() 1150 int index = base->timer_jiffies & TVR_MASK; in __run_timers() local 1155 if (!index && in __run_timers() 1161 list_replace_init(base->tv1.vec + index, &work_list); in __run_timers() 1202 int index, slot, array, found = 0; in __next_timer_interrupt() local 1207 index = slot = timer_jiffies & TVR_MASK; in __next_timer_interrupt() 1216 if (!index || slot < index) in __next_timer_interrupt() 1221 } while (slot != index); in __next_timer_interrupt() [all …]
|
D | audit_tree.c | 34 unsigned index; /* index; upper bit indicates 'will prune' */ member 154 chunk->owners[i].index = i; in alloc_chunk() 211 int index = p->index & ~(1U<<31); in find_chunk() local 212 p -= index; in find_chunk() 282 new->owners[i].index = chunk->owners[j].index - j + i; in untag_chunk() 338 chunk->owners[0].index = (1U << 31); in create_chunk() 425 p->index = old->owners[n].index; in tag_chunk() 431 p->index = (chunk->count - 1) | (1U<<31); in tag_chunk() 519 if (node->index & (1U<<31)) { in trim_marked() 531 if (!(node->index & (1U<<31))) in trim_marked() [all …]
|
D | printk.c | 115 int index; /* Minor dev. to use */ member 1774 console_cmdline[i].index == idx) { in __add_preferred_console() 1789 c->index = idx; in __add_preferred_console() 1871 console_cmdline[i].index == idx) { in update_console_cmdline() 1876 c->index = idx_new; in update_console_cmdline() 2178 struct tty_driver *console_device(int *index) in console_device() argument 2187 driver = c->device(c, index); in console_device() 2262 newcon->name, newcon->index); in register_console() 2283 if (newcon->index < 0) in register_console() 2284 newcon->index = 0; in register_console() [all …]
|
D | module.c | 184 } index; member 1272 if (!check_version(info->sechdrs, info->index.vers, name, mod, crc, in resolve_symbol() 1962 Elf_Shdr *symsec = &info->sechdrs[info->index.sym]; in simplify_symbols() 2007 if (sym[i].st_shndx == info->index.pcpu) in simplify_symbols() 2038 info->index.sym, i, mod); in apply_relocations() 2041 info->index.sym, i, mod); in apply_relocations() 2185 Elf_Shdr *infosec = &info->sechdrs[info->index.info]; in get_modinfo() 2310 Elf_Shdr *symsect = info->sechdrs + info->index.sym; in layout_symtab() 2311 Elf_Shdr *strsect = info->sechdrs + info->index.str; in layout_symtab() 2318 info->index.sym) | INIT_OFFSET_MASK; in layout_symtab() [all …]
|
D | hrtimer.c | 71 .index = HRTIMER_BASE_MONOTONIC, 77 .index = HRTIMER_BASE_REALTIME, 83 .index = HRTIMER_BASE_BOOTTIME, 89 .index = HRTIMER_BASE_TAI, 217 int basenum = base->index; in switch_hrtimer_base() 880 base->cpu_base->active_bases |= 1 << base->index; in enqueue_hrtimer() 925 base->cpu_base->active_bases &= ~(1 << base->index); in __remove_hrtimer() 1484 int index, gettime = 1; in hrtimer_run_queues() local 1489 for (index = 0; index < HRTIMER_MAX_CLOCK_BASES; index++) { in hrtimer_run_queues() 1490 base = &cpu_base->clock_base[index]; in hrtimer_run_queues()
|
D | seccomp.c | 79 static inline u32 get_u32(u64 data, int index) in get_u32() argument 81 return ((u32 *)&data)[index]; in get_u32() 104 int index = !!(off % sizeof(u64)); in seccomp_bpf_load() local 106 return get_u32(value, index); in seccomp_bpf_load()
|
D | cgroup.c | 3605 int index = 0, pid = *pos; in cgroup_pidlist_start() local 3612 while (index < end) { in cgroup_pidlist_start() 3613 int mid = (index + end) / 2; in cgroup_pidlist_start() 3615 index = mid; in cgroup_pidlist_start() 3618 index = mid + 1; in cgroup_pidlist_start() 3624 if (index >= l->length) in cgroup_pidlist_start() 3627 iter = l->list + index; in cgroup_pidlist_start()
|
D | futex.c | 369 key->shared.pgoff = page_head->index; in get_futex_key()
|
/kernel/trace/ |
D | trace_events_filter.c | 136 int index; member 381 int index, enum move_type *move) in get_pred_parent() argument 666 stack->index = n_preds; in __alloc_pred_stack() 673 stack->index = 0; in __free_pred_stack() 679 int index = stack->index; in __push_pred_stack() local 681 if (WARN_ON(index == 0)) in __push_pred_stack() 684 stack->preds[--index] = pred; in __push_pred_stack() 685 stack->index = index; in __push_pred_stack() 693 int index = stack->index; in __pop_pred_stack() local 695 pred = stack->preds[index++]; in __pop_pred_stack() [all …]
|
D | trace_functions_graph.c | 104 int index; in ftrace_push_return_trace() local 123 index = ++current->curr_ret_stack; in ftrace_push_return_trace() 125 current->ret_stack[index].ret = ret; in ftrace_push_return_trace() 126 current->ret_stack[index].func = func; in ftrace_push_return_trace() 127 current->ret_stack[index].calltime = calltime; in ftrace_push_return_trace() 128 current->ret_stack[index].subtime = 0; in ftrace_push_return_trace() 129 current->ret_stack[index].fp = frame_pointer; in ftrace_push_return_trace() 130 *depth = index; in ftrace_push_return_trace() 140 int index; in ftrace_pop_return_trace() local 142 index = current->curr_ret_stack; in ftrace_pop_return_trace() [all …]
|
D | ftrace.c | 488 unsigned long index; member 528 if ((void *)rec >= (void *)&pg->records[pg->index]) { in function_stat_next() 656 pg->index = 0; in ftrace_profile_reset() 819 if (stat->pages->index == PROFILES_PER_PAGE) { in ftrace_profile_alloc() 825 rec = &stat->pages->records[stat->pages->index++]; in ftrace_profile_alloc() 890 int index; in profile_graph_return() local 892 index = trace->depth; in profile_graph_return() 895 if (index) in profile_graph_return() 896 current->ret_stack[index - 1].subtime += calltime; in profile_graph_return() 898 if (current->ret_stack[index].subtime < calltime) in profile_graph_return() [all …]
|
D | ring_buffer.c | 1822 __rb_data_page_index(struct buffer_data_page *bpage, unsigned index) in __rb_data_page_index() argument 1824 return bpage->data + index; in __rb_data_page_index() 1827 static inline void *__rb_page_index(struct buffer_page *bpage, unsigned index) in __rb_page_index() argument 1829 return bpage->page->data + index; in __rb_page_index() 1875 unsigned long index; in rb_event_is_commit() local 1877 index = rb_event_index(event); in rb_event_is_commit() 1881 rb_commit_index(cpu_buffer) == index; in rb_event_is_commit() 2430 unsigned long index; in rb_try_to_discard() local 2452 index = local_cmpxchg(&bpage->write, old_index, new_index); in rb_try_to_discard() 2453 if (index == old_index) { in rb_try_to_discard()
|
D | trace.c | 5523 long index = (long)filp->private_data; in trace_options_core_read() local 5526 if (trace_flags & (1 << index)) in trace_options_core_read() 5539 long index = (long)filp->private_data; in trace_options_core_write() local 5551 ret = set_tracer_flag(tr, 1 << index, val); in trace_options_core_write() 5676 const char *option, long index) in create_trace_option_core_file() argument 5684 return trace_create_file(option, 0644, t_options, (void *)index, in create_trace_option_core_file()
|
D | trace.h | 987 unsigned short index; member
|
/kernel/time/ |
D | timer_list.c | 124 base->index); in print_base()
|
/kernel/debug/ |
D | debug_core.c | 763 .index = -1,
|
/kernel/events/ |
D | core.c | 3605 userpg->index = perf_event_index(event); in perf_event_update_userpage() 3607 if (userpg->index) in perf_event_update_userpage() 3651 vmf->page->index = vmf->pgoff; in perf_mmap_fault()
|