/kernel/linux/linux-6.6/tools/perf/ |
H A D | builtin-lock.c | 10 #include "util/thread.h" 937 struct thread *thread; in lock_contention_caller() local 948 thread = machine__findnew_thread(machine, -1, sample->pid); in lock_contention_caller() 949 if (thread == NULL) in lock_contention_caller() 955 ret = thread__resolve_callchain(thread, cursor, evsel, sample, in lock_contention_caller() 958 thread__put(thread); in lock_contention_caller() 963 thread__put(thread); in lock_contention_caller() 993 struct thread *thread; in callchain_id() local 1530 struct thread *thread = machine__findnew_thread(machine, sample->pid, process_sample_event() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | idle.c | 192 * 2. Sendi IPIs to all the cores which have at least one online thread in store_fastsleep_workaround_applyonce() 196 * offlined, as last thread of the core entering fastsleep or deeper in store_fastsleep_workaround_applyonce() 259 unsigned long thread = 1UL << cpu_thread_in_core(cpu); in atomic_unlock_and_stop_thread_idle() local 265 BUG_ON(s & thread); in atomic_unlock_and_stop_thread_idle() 268 new = (s | thread) & ~PNV_CORE_IDLE_LOCK_BIT; in atomic_unlock_and_stop_thread_idle() 296 /* per thread */ 305 /* per thread SPRs that get lost in shallow states */ 317 unsigned long thread = 1UL << cpu_thread_in_core(cpu); in power7_idle_insn() local 328 BUG_ON(!(*state & thread)); in power7_idle_insn() 329 *state &= ~thread; in power7_idle_insn() [all...] |
/kernel/linux/linux-6.6/arch/m68k/kernel/ |
H A D | signal.c | 261 memcpy(current->thread.fpcntl, sc->sc_fpcntl, 12); in restore_fpu_state() 262 memcpy(current->thread.fp, sc->sc_fpregs, 24); in restore_fpu_state() 340 if (__copy_from_user(current->thread.fpcntl, in rt_restore_fpu_state() 344 if (__copy_from_user(current->thread.fp, in rt_restore_fpu_state() 433 memcpy(sc->sc_fpcntl, current->thread.fpcntl, 12); in save_fpu_state() 434 memcpy(sc->sc_fpregs, current->thread.fp, 24); in save_fpu_state() 491 current->thread.fpcntl, 12); in rt_save_fpu_state() 494 current->thread.fp, 96); in rt_save_fpu_state() 666 current->thread.esp0 = (unsigned long)&new->ptregs; in mangle_kernel_stack() 1095 current->thread in do_signal() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
H A D | idle.c | 195 * 2. Sendi IPIs to all the cores which have at least one online thread in store_fastsleep_workaround_applyonce() 199 * offlined, as last thread of the core entering fastsleep or deeper in store_fastsleep_workaround_applyonce() 259 unsigned long thread = 1UL << cpu_thread_in_core(cpu); in atomic_unlock_and_stop_thread_idle() local 266 BUG_ON(s & thread); in atomic_unlock_and_stop_thread_idle() 269 new = s | thread; in atomic_unlock_and_stop_thread_idle() 298 /* per thread */ 307 /* per thread SPRs that get lost in shallow states */ 319 unsigned long thread = 1UL << cpu_thread_in_core(cpu); in power7_idle_insn() local 330 BUG_ON(!(*state & thread)); in power7_idle_insn() 331 *state &= ~thread; in power7_idle_insn() [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | build-id.c | 23 #include "thread.h" 51 struct thread *thread = machine__findnew_thread(machine, sample->pid, in build_id__mark_dso_hit() local 54 if (thread == NULL) { in build_id__mark_dso_hit() 60 if (thread__find_map(thread, sample->cpumode, sample->ip, &al)) in build_id__mark_dso_hit() 63 thread__put(thread); in build_id__mark_dso_hit() 73 struct thread *thread = machine__findnew_thread(machine, in perf_event__exit_del_thread() local 80 if (thread) { in perf_event__exit_del_thread() 81 machine__remove_thread(machine, thread); in perf_event__exit_del_thread() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/ |
H A D | selftest_migrate.c | 687 struct threaded_migrate *thread; in threaded_migrate() local 692 thread = kcalloc(n_cpus, sizeof(*thread), GFP_KERNEL); in threaded_migrate() 693 if (!thread) in threaded_migrate() 699 thread[i].migrate = migrate; in threaded_migrate() 700 thread[i].prng = in threaded_migrate() 703 tsk = kthread_run(fn, &thread[i], "igt-%d", i); in threaded_migrate() 710 thread[i].tsk = tsk; in threaded_migrate() 716 struct task_struct *tsk = thread[i].tsk; in threaded_migrate() 729 kfree(thread); in threaded_migrate() [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | build-id.c | 23 #include "thread.h" 52 struct thread *thread = machine__findnew_thread(machine, sample->pid, in build_id__mark_dso_hit() local 55 if (thread == NULL) { in build_id__mark_dso_hit() 62 if (thread__find_map(thread, sample->cpumode, sample->ip, &al)) in build_id__mark_dso_hit() 66 thread__put(thread); in build_id__mark_dso_hit() 76 struct thread *thread = machine__findnew_thread(machine, in perf_event__exit_del_thread() local 83 if (thread) { in perf_event__exit_del_thread() 84 machine__remove_thread(machine, thread); in perf_event__exit_del_thread() [all...] |
/kernel/linux/linux-6.6/tools/tracing/rtla/src/ |
H A D | timerlat_hist.c | 58 int *thread; member 93 /* one histogram for IRQ and one for thread, per CPU */ in timerlat_free_histogram() 98 if (data->hist[cpu].thread) in timerlat_free_histogram() 99 free(data->hist[cpu].thread); in timerlat_free_histogram() 135 /* one histogram for IRQ and one for thread, per cpu */ in timerlat_alloc_histogram() 141 data->hist[cpu].thread = calloc(1, sizeof(*data->hist->thread) * (entries + 1)); in timerlat_alloc_histogram() 142 if (!data->hist[cpu].thread) in timerlat_alloc_histogram() 190 hist = data->hist[cpu].thread; in timerlat_hist_update() 437 total += data->hist[cpu].thread[bucke in timerlat_print_stats() [all...] |
/kernel/linux/linux-5.10/arch/microblaze/include/asm/ |
H A D | mmu_context_mm.h | 120 tsk->thread.pgdir = next->pgd; in switch_mm() 132 current->thread.pgdir = mm->pgd; in activate_mm()
|
/kernel/linux/linux-5.10/arch/arm/nwfpe/ |
H A D | fpmodule.c | 50 struct thread_info *thread = v; in nwfpe_notify() local 53 nwfpe_init_fpa(&thread->fpstate); in nwfpe_notify()
|
/kernel/linux/linux-5.10/arch/loongarch/include/asm/ |
H A D | lbt.h | 110 restore_lbt_registers(¤t->thread.lbt); in own_lbt_inatomic() 118 save_lbt_registers(&tsk->thread.lbt); in lose_lbt_inatomic()
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | stacktrace.c | 86 regs->regs[29] = tsk->thread.reg29; in save_stack_trace_tsk() 88 regs->cp0_epc = tsk->thread.reg31; in save_stack_trace_tsk()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | cputhreads.h | 41 * bit set for each core that has at least one thread set in the argument. 140 void book3e_start_thread(int thread, unsigned long addr); 141 void book3e_stop_thread(int thread);
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | stacktrace.h | 69 return &((struct inactive_task_frame *)task->thread.sp)->bp; in get_frame_pointer() 88 return (unsigned long *)task->thread.sp; in get_stack_pointer()
|
/kernel/linux/linux-5.10/arch/nds32/include/asm/ |
H A D | fpu.h | 96 load_fpu(¤t->thread.fpu); 101 load_fpu(¤t->thread.fpu);
|
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | stacktrace.c | 86 regs->regs[29] = tsk->thread.reg29; in save_stack_trace_tsk() 88 regs->cp0_epc = tsk->thread.reg31; in save_stack_trace_tsk()
|
/kernel/linux/linux-6.6/arch/microblaze/include/asm/ |
H A D | mmu_context_mm.h | 117 tsk->thread.pgdir = next->pgd; in switch_mm() 130 current->thread.pgdir = mm->pgd; in activate_mm()
|
/kernel/linux/linux-6.6/arch/arm/nwfpe/ |
H A D | fpmodule.c | 50 struct thread_info *thread = v; in nwfpe_notify() local 53 nwfpe_init_fpa(&thread->fpstate); in nwfpe_notify()
|
/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/ |
H A D | cgroup_util.h | 51 extern ssize_t proc_read_text(int pid, bool thread, const char *item, char *buf, size_t size); 52 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
|
/kernel/linux/linux-5.10/tools/perf/arch/x86/util/ |
H A D | unwind-libdw.c | 7 bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg) in libdw__arch_set_initial_registers() argument 52 return dwfl_thread_state_registers(thread, 0, nregs, dwarf_regs); in libdw__arch_set_initial_registers()
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | stacktrace.h | 79 return &((struct inactive_task_frame *)task->thread.sp)->bp; in get_frame_pointer() 98 return (unsigned long *)task->thread.sp; in get_stack_pointer()
|
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | cet.c | 63 tsk->thread.error_code = error_code; in do_user_cp_fault() 64 tsk->thread.trap_nr = X86_TRAP_CP; in do_user_cp_fault()
|
/kernel/linux/linux-6.6/tools/perf/arch/x86/util/ |
H A D | unwind-libdw.c | 8 bool libdw__arch_set_initial_registers(Dwfl_Thread *thread, void *arg) in libdw__arch_set_initial_registers() argument 53 return dwfl_thread_state_registers(thread, 0, nregs, dwarf_regs); in libdw__arch_set_initial_registers()
|
/kernel/linux/linux-6.6/tools/perf/tests/shell/lib/ |
H A D | stat_output.sh | 76 echo -n "Checking $1 output: per thread " 82 perf stat --per-thread -a $2 true 83 commachecker --per-thread
|
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/ |
H A D | cgroup_util.h | 58 extern ssize_t proc_read_text(int pid, bool thread, const char *item, char *buf, size_t size); 59 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
|