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
589 struct task_struct *thread; in sugov_kthread_create() local
614 thread = kthread_create(kthread_worker_fn, &sg_policy->worker, in sugov_kthread_create()
617 if (IS_ERR(thread)) { in sugov_kthread_create()
618 pr_err("failed to create sugov thread: %ld\n", PTR_ERR(thread)); in sugov_kthread_create()
619 return PTR_ERR(thread); in sugov_kthread_create()
622 ret = sched_setattr_nocheck(thread, &attr); in sugov_kthread_create()
624 kthread_stop(thread); in sugov_kthread_create()
629 sg_policy->thread = thread; in sugov_kthread_create()
630 kthread_bind_mask(thread, policy->related_cpus); in sugov_kthread_create()
[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.c492 struct task_struct *thread, *caller; in seccomp_can_sync_threads() local
499 for_each_thread(caller, thread) { in seccomp_can_sync_threads()
503 if (thread == caller) in seccomp_can_sync_threads()
506 if (thread->seccomp.mode == SECCOMP_MODE_DISABLED || in seccomp_can_sync_threads()
507 (thread->seccomp.mode == SECCOMP_MODE_FILTER && in seccomp_can_sync_threads()
508 is_ancestor(thread->seccomp.filter, in seccomp_can_sync_threads()
513 failed = task_pid_vnr(thread); in seccomp_can_sync_threads()
593 struct task_struct *thread, *caller; in seccomp_sync_threads() local
600 for_each_thread(caller, thread) { in seccomp_sync_threads()
602 if (thread == caller) in seccomp_sync_threads()
[all …]
Dexit.c629 struct task_struct *thread, *reaper; in find_new_reaper() local
631 thread = find_alive_thread(father); in find_new_reaper()
632 if (thread) in find_new_reaper()
633 return thread; in find_new_reaper()
652 thread = find_alive_thread(reaper); in find_new_reaper()
653 if (thread) in find_new_reaper()
654 return thread; in find_new_reaper()
Dcpu.c72 struct task_struct *thread; member
763 wake_up_process(st->thread); in __cpuhp_kick_ap()
793 kthread_unpark(st->thread); in bringup_wait_for_ap_online()
1135 if (!st->thread) in cpuhp_invoke_ap_callback()
1186 .store = &cpuhp_state.thread,
1209 kthread_unpark(this_cpu_read(cpuhp_state.thread)); in cpuhp_threads_init()
1342 kthread_park(st->thread); in takedown_cpu()
1358 kthread_unpark(st->thread); in takedown_cpu()
Dfork.c1063 *offset += offsetof(struct task_struct, thread); in task_struct_whitelist()
/kernel/trace/
Dtrace_osnoise.c214 struct osn_thread thread; member
394 osn_var->thread.delta_start = 0; in timerlat_thread_exit()
395 osn_var->thread.arrival_time = 0; in timerlat_thread_exit()
756 if (osn_var->thread.delta_start) in cond_move_thread_delta_start()
757 osn_var->thread.delta_start += duration; in cond_move_thread_delta_start()
1154 osn_var->thread.arrival_time = time_get(); in thread_entry()
1156 set_int_safe_time(osn_var, &osn_var->thread.delta_start); in thread_entry()
1158 osn_var->thread.count++; in thread_entry()
1179 duration = get_int_safe_duration(osn_var, &osn_var->thread.delta_start); in thread_exit()
1181 trace_thread_noise(t, osn_var->thread.arrival_time, duration); in thread_exit()
[all …]
DKconfig229 draw a call graph for each thread with some information like
410 depending on what the cpumask file is set to, which each thread
424 A kernel thread is created that will spin with interrupts disabled
448 context of Linux, NMIs, IRQs, SoftIRQs, and any other system thread
465 available for the thread, and the counters for the noise sources.
483 The tracer creates a per-cpu kernel thread with real-time priority.
484 The tracer thread sets a periodic timer to wakeup itself, and goes
485 to sleep waiting for the timer to fire. At the wakeup, the thread
492 activation of the thread. The second is the timer latency observed
493 by the thread, which is the same level that cyclictest reports. The
[all …]
/kernel/irq/
Dmanage.c195 if (action->thread) in irq_set_thread_affinity()
197 if (action->secondary && action->secondary->thread) in irq_set_thread_affinity()
1288 if (!action || !action->thread) in wake_up_and_wait_for_irq_thread_ready()
1291 wake_up_process(action->thread); in wake_up_and_wait_for_irq_thread_ready()
1362 if (action->thread) in irq_wake_thread()
1481 new->thread = get_task_struct(t); in setup_irq_thread()
1856 if (new->thread) { in __setup_irq()
1857 struct task_struct *t = new->thread; in __setup_irq()
1859 new->thread = NULL; in __setup_irq()
1862 if (new->secondary && 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()