Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 13 of 13) sorted by relevance

/kernel/debug/
Dgdbstub.c493 struct task_struct *thread; in gdb_get_regs_helper() local
497 thread = kgdb_usethread; in gdb_get_regs_helper()
498 if (!thread) { in gdb_get_regs_helper()
499 thread = kgdb_info[ks->cpu].task; in gdb_get_regs_helper()
510 if (thread == kgdb_info[i].task) in gdb_get_regs_helper()
530 sleeping_thread_to_gdb_regs(gdb_regs, thread); in gdb_get_regs_helper()
811 struct task_struct *thread; in gdb_cmd_task() local
818 thread = getthread(ks->linux_regs, ks->threadid); in gdb_cmd_task()
819 if (!thread && ks->threadid > 0) { in gdb_cmd_task()
823 kgdb_usethread = thread; in gdb_cmd_task()
[all …]
/kernel/sched/
Dcpufreq_schedutil.c35 struct task_struct *thread; member
585 struct task_struct *thread; in sugov_kthread_create() local
610 thread = kthread_create(kthread_worker_fn, &sg_policy->worker, in sugov_kthread_create()
613 if (IS_ERR(thread)) { in sugov_kthread_create()
614 pr_err("failed to create sugov thread: %ld\n", PTR_ERR(thread)); in sugov_kthread_create()
615 return PTR_ERR(thread); in sugov_kthread_create()
618 ret = sched_setattr_nocheck(thread, &attr); in sugov_kthread_create()
620 kthread_stop(thread); in sugov_kthread_create()
625 sg_policy->thread = thread; in sugov_kthread_create()
626 kthread_bind_mask(thread, policy->related_cpus); in sugov_kthread_create()
[all …]
/kernel/trace/
Dtrace_osnoise.c191 struct osn_thread thread; member
370 osn_var->thread.delta_start = 0; in timerlat_thread_exit()
371 osn_var->thread.arrival_time = 0; in timerlat_thread_exit()
732 if (osn_var->thread.delta_start) in cond_move_thread_delta_start()
733 osn_var->thread.delta_start += duration; in cond_move_thread_delta_start()
1130 osn_var->thread.arrival_time = time_get(); in thread_entry()
1132 set_int_safe_time(osn_var, &osn_var->thread.delta_start); in thread_entry()
1134 osn_var->thread.count++; in thread_entry()
1155 duration = get_int_safe_duration(osn_var, &osn_var->thread.delta_start); in thread_exit()
1157 trace_thread_noise(t, osn_var->thread.arrival_time, duration); in thread_exit()
[all …]
DKconfig216 draw a call graph for each thread with some information like
381 depending on what the cpumask file is set to, which each thread
395 A kernel thread is created that will spin with interrupts disabled
419 context of Linux, NMIs, IRQs, SoftIRQs, and any other system thread
436 available for the thread, and the counters for the noise sources.
454 The tracer creates a per-cpu kernel thread with real-time priority.
455 The tracer thread sets a periodic timer to wakeup itself, and goes
456 to sleep waiting for the timer to fire. At the wakeup, the thread
463 activation of the thread. The second is the timer latency observed
464 by the thread, which is the same level that cyclictest reports. The
[all …]
/kernel/
Dstop_machine.c38 struct task_struct *thread; member
60 if (task != stopper->thread) in print_stop_info()
89 wake_q_add(wakeq, stopper->thread); in __cpu_stop_queue_work()
537 kthread_park(stopper->thread); in stop_machine_park()
542 sched_set_stop_task(cpu, per_cpu(cpu_stopper.thread, cpu)); in cpu_stop_create()
557 kthread_unpark(stopper->thread); in stop_machine_unpark()
561 .store = &cpu_stopper.thread,
Dseccomp.c487 struct task_struct *thread, *caller; in seccomp_can_sync_threads() local
494 for_each_thread(caller, thread) { in seccomp_can_sync_threads()
498 if (thread == caller) in seccomp_can_sync_threads()
501 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED || in seccomp_can_sync_threads()
502 (thread->seccomp.mode == SECCOMP_MODE_FILTER && in seccomp_can_sync_threads()
503 is_ancestor(thread->seccomp.filter, in seccomp_can_sync_threads()
508 failed = task_pid_vnr(thread); in seccomp_can_sync_threads()
584 struct task_struct *thread, *caller; in seccomp_sync_threads() local
591 for_each_thread(caller, thread) { in seccomp_sync_threads()
593 if (thread == caller) in seccomp_sync_threads()
[all …]
Dexit.c623 struct task_struct *thread, *reaper; in find_new_reaper() local
625 thread = find_alive_thread(father); in find_new_reaper()
626 if (thread) in find_new_reaper()
627 return thread; in find_new_reaper()
646 thread = find_alive_thread(reaper); in find_new_reaper()
647 if (thread) in find_new_reaper()
648 return thread; in find_new_reaper()
Dcpu.c70 struct task_struct *thread; member
563 wake_up_process(st->thread); in __cpuhp_kick_ap()
593 kthread_unpark(st->thread); in bringup_wait_for_ap()
879 if (!st->thread) in cpuhp_invoke_ap_callback()
930 .store = &cpuhp_state.thread,
953 kthread_unpark(this_cpu_read(cpuhp_state.thread)); in cpuhp_threads_init()
1086 kthread_park(st->thread); in takedown_cpu()
1102 kthread_unpark(st->thread); in takedown_cpu()
Dfork.c999 *offset += offsetof(struct task_struct, thread); in task_struct_whitelist()
/kernel/irq/
Dmanage.c193 if (action->thread) in irq_set_thread_affinity()
1276 if (!action || !action->thread) in wake_up_and_wait_for_irq_thread_ready()
1279 wake_up_process(action->thread); in wake_up_and_wait_for_irq_thread_ready()
1350 if (action->thread) in irq_wake_thread()
1469 new->thread = get_task_struct(t); in setup_irq_thread()
1844 if (new->thread) { in __setup_irq()
1845 struct task_struct *t = new->thread; in __setup_irq()
1847 new->thread = NULL; in __setup_irq()
1851 if (new->secondary && new->secondary->thread) { in __setup_irq()
1852 struct task_struct *t = new->secondary->thread; in __setup_irq()
[all …]
Dhandle.c68 if (action->thread->flags & PF_EXITING) in __irq_wake_thread()
136 wake_up_process(action->thread); in __irq_wake_thread()
/kernel/time/
Dposix-cpu-timers.c59 const bool thread = !!CPUCLOCK_PERTHREAD(clock); in pid_for_clock() local
71 return thread ? task_pid(current) : task_tgid(current); in pid_for_clock()
77 if (thread) { in pid_for_clock()
/kernel/debug/kdb/
Dkdb_main.c2317 (void *)(&p->thread), in kdb_ps1()