/linux/tools/perf/ |
H A D | builtin-record.c | 186 struct record_thread *thread_data; member 1043 static void record__thread_data_init_pipes(struct record_thread *thread_data) in record__thread_data_init_pipes() argument 1045 thread_data->pipes.msg[0] = -1; in record__thread_data_init_pipes() 1046 thread_data->pipes.msg[1] = -1; in record__thread_data_init_pipes() 1047 thread_data->pipes.ack[0] = -1; in record__thread_data_init_pipes() 1048 thread_data->pipes.ack[1] = -1; in record__thread_data_init_pipes() 1051 static int record__thread_data_open_pipes(struct record_thread *thread_data) in record__thread_data_open_pipes() argument 1053 if (pipe(thread_data->pipes.msg)) in record__thread_data_open_pipes() 1056 if (pipe(thread_data->pipes.ack)) { in record__thread_data_open_pipes() 1057 close(thread_data in record__thread_data_open_pipes() 1071 record__thread_data_close_pipes(struct record_thread * thread_data) record__thread_data_close_pipes() argument 1096 record__thread_data_init_maps(struct record_thread * thread_data,struct evlist * evlist) record__thread_data_init_maps() argument 1144 record__thread_data_init_pollfd(struct record_thread * thread_data,struct evlist * evlist) record__thread_data_init_pollfd() argument 1176 struct record_thread *thread_data = rec->thread_data; record__free_thread_data() local 1207 record__update_evlist_pollfd_from_thread(struct record * rec,struct evlist * evlist,struct record_thread * thread_data) record__update_evlist_pollfd_from_thread() argument 1231 record__dup_non_perf_events(struct record * rec,struct evlist * evlist,struct record_thread * thread_data) record__dup_non_perf_events() argument 1258 struct record_thread *thread_data; record__alloc_thread_data() local 2272 record__terminate_thread(struct record_thread * thread_data) record__terminate_thread() argument 2293 struct record_thread *thread_data = rec->thread_data; record__start_threads() local 2356 struct record_thread *thread_data = rec->thread_data; record__stop_threads() local 2383 struct record_thread *thread_data = rec->thread_data; record__waking() local [all...] |
/linux/drivers/md/dm-vdo/ |
H A D | thread-utils.c | 22 void (*thread_function)(void *thread_data); 23 void *thread_data; member 44 thread->thread_function(thread->thread_data); in thread_starter() 50 int vdo_create_thread(void (*thread_function)(void *), void *thread_data, in vdo_create_thread() argument 66 thread->thread_data = thread_data; in vdo_create_thread()
|
H A D | thread-utils.h | 16 int __must_check vdo_create_thread(void (*thread_function)(void *), void *thread_data,
|
/linux/tools/perf/tests/ |
H A D | mmap-thread-lookup.c | 26 struct thread_data { struct 33 static struct thread_data threads[THREADS]; argument 35 static int thread_init(struct thread_data *td) in thread_init() 57 struct thread_data *td = arg; in thread_fn() 82 struct thread_data *td = &threads[i]; in thread_create() 102 struct thread_data *td0 = &threads[0]; in threads_create() 119 struct thread_data *td0 = &threads[0]; in threads_destroy() 189 struct thread_data *td = &threads[i]; in mmap_events()
|
/linux/tools/perf/bench/ |
H A D | futex-wake-parallel.c | 40 struct thread_data { struct 82 struct thread_data *waker = (struct thread_data *) arg; in waking_workerfn() 101 static void wakeup_threads(struct thread_data *td) in wakeup_threads() 186 static void print_run(struct thread_data *waking_worker, unsigned int run_num) in print_run() 228 static void do_run_stats(struct thread_data *waking_worker) in do_run_stats() 251 struct thread_data *waking_worker; in bench_futex_wake_parallel() 41 workerthread_data global() argument 42 nwokenthread_data global() argument 43 runtimethread_data global() argument
|
H A D | sched-pipe.c | 34 struct thread_data { struct 173 static inline int read_pipe(struct thread_data *td) in read_pipe() 190 struct thread_data *td = __tdata; in worker_thread() 218 struct thread_data threads[2] = {}; in bench_sched_pipe() 219 struct thread_data *td; in bench_sched_pipe() 35 nrthread_data global() argument 36 pipe_readthread_data global() argument 37 pipe_writethread_data global() argument 38 epoll_evthread_data global() argument 39 epoll_fdthread_data global() argument 40 cgroup_failedthread_data global() argument 41 pthreadthread_data global() argument
|
H A D | numa.c | 58 struct thread_data { struct 153 struct thread_data *threads; 591 struct thread_data *td; in parse_setup_cpu_list() 739 struct thread_data *td; in parse_setup_node_list() 989 struct thread_data *td; in count_process_nodes() 1028 struct thread_data *td; in count_node_processes() 1102 struct thread_data *td = g->threads + t; in calc_convergence() 1208 struct thread_data *td = __tdata; in worker_thread() 1221 u8 *thread_data; in worker_thread() local 1234 thread_data in worker_thread() 59 curr_cputhread_data global() argument 60 bind_cpumaskthread_data global() argument 61 bind_nodethread_data global() argument 62 process_datathread_data global() argument 63 process_nrthread_data global() argument 64 thread_nrthread_data global() argument 65 task_nrthread_data global() argument 66 loops_donethread_data global() argument 67 valthread_data global() argument 68 runtime_nsthread_data global() argument 69 system_time_nsthread_data global() argument 70 user_time_nsthread_data global() argument 71 speed_gbsthread_data global() argument 72 process_lockthread_data global() argument [all...] |
/linux/tools/testing/selftests/rseq/ |
H A D | param_test.c | 479 struct spinlock_thread_test_data *thread_data = arg; in test_percpu_spinlock_thread() local 480 struct spinlock_test_data *data = thread_data->data; in test_percpu_spinlock_thread() 483 if (!opt_disable_rseq && thread_data->reg && in test_percpu_spinlock_thread() 486 reps = thread_data->reps; in test_percpu_spinlock_thread() 499 if (!opt_disable_rseq && thread_data->reg && in test_percpu_spinlock_thread() 518 struct spinlock_thread_test_data thread_data[num_threads]; in test_percpu_spinlock() local 522 thread_data[i].reps = opt_reps; in test_percpu_spinlock() 524 thread_data[i].reg = 1; in test_percpu_spinlock() 526 thread_data[i].reg = 0; in test_percpu_spinlock() 527 thread_data[ in test_percpu_spinlock() 556 struct inc_thread_test_data *thread_data = arg; test_percpu_inc_thread() local 595 struct inc_thread_test_data thread_data[num_threads]; test_percpu_inc() local [all...] |
/linux/tools/testing/selftests/arm64/mte/ |
H A D | check_gcr_el1_cswitch.c | 72 int thread_data[MAX_THREADS]; in execute_test() local 79 pthread_join(thread_id[i], (void *)&thread_data[i]); in execute_test() 82 if (thread_data[i] == KSFT_FAIL) in execute_test()
|
/linux/tools/testing/selftests/landlock/ |
H A D | audit_test.c | 162 struct thread_data { struct 169 const struct thread_data *data = (struct thread_data *)arg; in thread_audit_test() argument 230 struct thread_data child_data; in TEST_F()
|
/linux/lib/ |
H A D | test_rhashtable.c | 73 struct thread_data { struct 587 static int thread_lookup_test(struct thread_data *tdata) in thread_lookup_test() 620 struct thread_data *tdata = data; in threadfunc() 687 struct thread_data *tdata; in test_rht_init() 747 tdata = vzalloc(array_size(tcount, sizeof(struct thread_data))); in test_rht_init() 74 entriesthread_data global() argument 75 idthread_data global() argument 76 taskthread_data global() argument 77 objsthread_data global() argument
|
/linux/tools/power/x86/turbostat/ |
H A D | turbostat.c | 1994 struct thread_data { struct 2266 struct thread_data threads; 2334 #define PER_THREAD_PARAMS struct thread_data *t, struct core_data *c, struct pkg_data *p 2336 int for_all_cpus(int (func) (struct thread_data *, struct core_data *, struct pkg_data *), in for_all_cpus() argument 2337 struct thread_data *thread_base, struct core_data *core_base, struct pkg_data *pkg_base) in for_all_cpus() 2347 struct thread_data *t; in for_all_cpus() 3837 int delta_thread(struct thread_data *new, struct thread_data *old, struct core_data *core_delta) in delta_thread() 3942 int delta_cpu(struct thread_data *t, struct core_data *c, in delta_cpu() 3943 struct pkg_data *p, struct thread_data *t in delta_cpu() 1995 tv_beginthread_data global() argument 1996 tv_endthread_data global() argument 1997 tv_deltathread_data global() argument 1998 tscthread_data global() argument 1999 aperfthread_data global() argument 2000 mperfthread_data global() argument 2001 c1thread_data global() argument 2002 instr_countthread_data global() argument 2003 irq_countthread_data global() argument 2004 nmi_countthread_data global() argument 2005 smi_countthread_data global() argument 2006 cpu_idthread_data global() argument 2007 apic_idthread_data global() argument 2008 x2apic_idthread_data global() argument 2009 flagsthread_data global() argument 2010 is_atomthread_data global() argument 2011 counterthread_data global() argument 2012 perf_counterthread_data global() argument 2013 pmt_counterthread_data global() argument 6106 for_all_cpus_2(int (func)(struct thread_data *,struct core_data *,struct pkg_data *,struct thread_data *,struct core_data *,struct pkg_data *),struct thread_data * thread_base,struct core_data * core_base,struct pkg_data * pkg_base,struct thread_data * thread_base2,struct core_data * core_base2,struct pkg_data * pkg_base2) for_all_cpus_2() argument [all...] |