/kernel/ |
D | pid.c | 57 .nr = 0, 152 idr_remove(&ns->idr, upid->nr); in free_pid() 164 int i, nr; in alloc_pid() local 212 nr = idr_alloc(&tmp->idr, NULL, tid, in alloc_pid() 218 if (nr == -ENOSPC) in alloc_pid() 219 nr = -EEXIST; in alloc_pid() 233 nr = idr_alloc_cyclic(&tmp->idr, NULL, pid_min, in alloc_pid() 239 if (nr < 0) { in alloc_pid() 240 retval = (nr == -ENOSPC) ? -EAGAIN : nr; in alloc_pid() 244 pid->numbers[i].nr = nr; in alloc_pid() [all …]
|
D | softirq.c | 465 inline void raise_softirq_irqoff(unsigned int nr) in raise_softirq_irqoff() argument 467 __raise_softirq_irqoff(nr); in raise_softirq_irqoff() 482 void raise_softirq(unsigned int nr) in raise_softirq() argument 487 raise_softirq_irqoff(nr); in raise_softirq() 491 void __raise_softirq_irqoff(unsigned int nr) in __raise_softirq_irqoff() argument 494 trace_softirq_raise(nr); in __raise_softirq_irqoff() 495 or_softirq_pending(1UL << nr); in __raise_softirq_irqoff() 498 void open_softirq(int nr, void (*action)(struct softirq_action *)) in open_softirq() argument 500 softirq_vec[nr].action = action; in open_softirq()
|
D | seccomp.c | 244 sd->nr = syscall_get_nr(task, regs); in populate_seccomp_data() 360 int syscall_nr = sd->nr; in seccomp_cache_check_allow() 728 case offsetof(struct seccomp_data, nr): in seccomp_is_const_allow() 729 reg_value = sd->nr; in seccomp_is_const_allow() 789 int nr; in seccomp_cache_prepare_bitmap() local 799 for (nr = 0; nr < bitmap_size; nr++) { in seccomp_cache_prepare_bitmap() 801 if (!test_bit(nr, bitmap)) in seccomp_cache_prepare_bitmap() 804 sd.nr = nr; in seccomp_cache_prepare_bitmap() 815 __clear_bit(nr, bitmap); in seccomp_cache_prepare_bitmap() 1305 this_syscall = sd ? sd->nr : in __secure_computing()
|
D | notifier.c | 116 int ret, nr = 0; in notifier_call_chain_robust() local 118 ret = notifier_call_chain(nl, val_up, v, -1, &nr); in notifier_call_chain_robust() 120 notifier_call_chain(nl, val_down, v, nr-1, NULL); in notifier_call_chain_robust()
|
D | pid_namespace.c | 175 int nr; in zap_pid_ns_processes() local 208 nr = 2; in zap_pid_ns_processes() 209 idr_for_each_entry_continue(&pid_ns->idr, pid, nr) { in zap_pid_ns_processes()
|
D | fork.c | 1813 pid_t nr = -1; in pidfd_show_fdinfo() local 1817 nr = pid_nr_ns(pid, ns); in pidfd_show_fdinfo() 1820 seq_put_decimal_ll(m, "Pid:\t", nr); in pidfd_show_fdinfo() 1823 seq_put_decimal_ll(m, "\nNSpid:\t", nr); in pidfd_show_fdinfo() 1824 if (nr > 0) { in pidfd_show_fdinfo() 1833 seq_put_decimal_ll(m, "\t", pid->numbers[i].nr); in pidfd_show_fdinfo() 2531 pid_t nr; in kernel_clone() local 2580 nr = pid_vnr(pid); in kernel_clone() 2583 put_user(nr, args->parent_tid); in kernel_clone() 2603 return nr; in kernel_clone()
|
D | ptrace.c | 750 if (arg.nr < 0) in ptrace_peek_siginfo() 762 for (i = 0; i < arg.nr; ) { in ptrace_peek_siginfo() 943 info->entry.nr = syscall_get_nr(child, regs); in ptrace_get_syscall_info_entry()
|
/kernel/locking/ |
D | lockdep_proc.c | 410 unsigned long nl, nr; in lock_stat_cmp() local 412 nl = dl->stats.read_waittime.nr + dl->stats.write_waittime.nr; in lock_stat_cmp() 413 nr = dr->stats.read_waittime.nr + dr->stats.write_waittime.nr; in lock_stat_cmp() 415 return nr - nl; in lock_stat_cmp() 429 static void snprint_time(char *buf, size_t bufsiz, s64 nr) in snprint_time() argument 434 nr += 5; /* for display rounding */ in snprint_time() 435 div = div_s64_rem(nr, 1000, &rem); in snprint_time() 449 seq_printf(m, "%14lu", lt->nr); in seq_lock_time() 453 seq_time(m, lt->nr ? div64_u64(lt->total, lt->nr) : 0); in seq_lock_time() 503 if (stats->write_holdtime.nr) { in seq_stats() [all …]
|
D | lockdep.c | 240 if (time < lt->min || !lt->nr) in lock_time_inc() 244 lt->nr++; in lock_time_inc() 249 if (!src->nr) in lock_time_add() 255 if (src->min < dst->min || !dst->nr) in lock_time_add() 259 dst->nr += src->nr; in lock_time_add()
|
/kernel/bpf/ |
D | stackmap.c | 23 u32 nr; member 372 entry->nr = stack_trace_save_tsk(task, (unsigned long *)entry->ip, in get_callchain_entry_for_task() 385 for (i = entry->nr - 1; i >= 0; i--) in get_callchain_entry_for_task() 408 if (trace->nr <= skip) in __bpf_get_stackid() 412 trace_nr = trace->nr - skip; in __bpf_get_stackid() 430 new_bucket->nr = trace_nr; in __bpf_get_stackid() 435 if (hash_matches && bucket->nr == trace_nr && in __bpf_get_stackid() 445 if (hash_matches && bucket->nr == trace_nr && in __bpf_get_stackid() 459 new_bucket->nr = trace_nr; in __bpf_get_stackid() 507 while (nr_kernel < trace->nr) { in count_kernel_ip() [all …]
|
/kernel/trace/ |
D | trace_syscalls.c | 104 static struct syscall_metadata *syscall_nr_to_meta(int nr) in syscall_nr_to_meta() argument 107 return xa_load(&syscalls_metadata_sparse, (unsigned long)nr); in syscall_nr_to_meta() 109 if (!syscalls_metadata || nr >= NR_syscalls || nr < 0) in syscall_nr_to_meta() 112 return syscalls_metadata[nr]; in syscall_nr_to_meta() 138 syscall = trace->nr; in print_syscall_enter() 184 syscall = trace->nr; in print_syscall_exit() 335 entry->nr = syscall_nr; in ftrace_syscall_enter() 382 entry->nr = syscall_nr; in ftrace_syscall_exit() 525 unsigned long __init __weak arch_syscall_addr(int nr) in arch_syscall_addr() argument 527 return (unsigned long)sys_call_table[nr]; in arch_syscall_addr() [all …]
|
D | trace.h | 118 int nr; member 124 int nr; member
|
D | bpf_trace.c | 1549 return br_stack->nr * br_entry_size; in BPF_CALL_4() 1554 to_copy = min_t(u32, br_stack->nr * br_entry_size, size); in BPF_CALL_4()
|
/kernel/events/ |
D | hw_breakpoint.c | 141 int nr; in fetch_bp_busy_slots() local 143 nr = info->cpu_pinned; in fetch_bp_busy_slots() 145 nr += max_task_bp_pinned(cpu, type); in fetch_bp_busy_slots() 147 nr += task_bp_pinned(cpu, bp, type); in fetch_bp_busy_slots() 149 if (nr > slots->pinned) in fetch_bp_busy_slots() 150 slots->pinned = nr; in fetch_bp_busy_slots() 152 nr = info->flexible; in fetch_bp_busy_slots() 153 if (nr > slots->flexible) in fetch_bp_busy_slots() 154 slots->flexible = nr; in fetch_bp_busy_slots()
|
D | callchain.c | 193 ctx.nr = entry->nr = init_nr; in get_perf_callchain()
|
D | core.c | 1406 u32 nr; in perf_event_pid_type() local 1413 nr = __task_pid_nr_ns(p, type, event->ns); in perf_event_pid_type() 1415 if (!nr && !pid_alive(p)) in perf_event_pid_type() 1416 nr = -1; in perf_event_pid_type() 1417 return nr; in perf_event_pid_type() 1852 int nr = 1; in __perf_event_read_size() local 1864 nr += nr_siblings; in __perf_event_read_size() 1872 return size + nr * entry; in __perf_event_read_size() 3634 itrs[heap->nr] = event; in __heap_add() 3635 heap->nr++; in __heap_add() [all …]
|
D | ring_buffer.c | 886 int i, nr; in rb_free_work() local 889 nr = data_page_nr(rb); in rb_free_work() 893 for (i = 0; i <= nr; i++) in rb_free_work()
|
/kernel/rcu/ |
D | rcuscale.c | 480 int nr; in compute_real() local 483 nr = n; in compute_real() 485 nr = num_online_cpus() + 1 + n; in compute_real() 486 if (nr <= 0) in compute_real() 487 nr = 1; in compute_real() 489 return nr; in compute_real()
|
/kernel/entry/ |
D | common.c | 249 unsigned long nr = syscall_get_nr(current, regs); in syscall_exit_to_user_mode_prepare() local 254 if (WARN(irqs_disabled(), "syscall %lu left IRQs disabled", nr)) in syscall_exit_to_user_mode_prepare()
|
/kernel/irq/ |
D | irqdesc.c | 515 static int irq_expand_nr_irqs(unsigned int nr) in irq_expand_nr_irqs() argument 517 if (nr > IRQ_BITMAP_BITS) in irq_expand_nr_irqs() 519 nr_irqs = nr; in irq_expand_nr_irqs() 617 static int irq_expand_nr_irqs(unsigned int nr) in irq_expand_nr_irqs() argument
|
D | internals.h | 108 extern void init_kstat_irqs(struct irq_desc *desc, int node, int nr);
|
/kernel/sched/ |
D | wait.c | 150 void __wake_up_locked(struct wait_queue_head *wq_head, unsigned int mode, int nr) in __wake_up_locked() argument 152 __wake_up_common(wq_head, mode, nr, 0, NULL, NULL); in __wake_up_locked()
|
D | fair.c | 3671 if (cfs_rq->removed.nr) { in update_cfs_rq_load_avg() 3679 cfs_rq->removed.nr = 0; in update_cfs_rq_load_avg() 3904 ++cfs_rq->removed.nr; in remove_entity_load_avg() 6377 int cpu, nr = INT_MAX; in select_idle_cpu() local 6396 nr = div_u64(span_avg, avg_cost); in select_idle_cpu() 6398 nr = 4; in select_idle_cpu() 6406 if (!--nr) in select_idle_cpu()
|
D | sched.h | 568 int nr; member
|
/kernel/time/ |
D | posix-timers.c | 113 static int hash(struct signal_struct *sig, unsigned int nr) in hash() argument 115 return hash_32(hash32_ptr(sig) ^ nr, HASH_BITS(posix_timers_hashtable)); in hash()
|