Home
last modified time | relevance | path

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

/linux/tools/perf/ !
H A Dbuiltin-record.c186 struct record_thread *thread_data; member
1006 static void record__thread_data_init_pipes(struct record_thread *thread_data) in record__thread_data_init_pipes() argument
1008 thread_data->pipes.msg[0] = -1; in record__thread_data_init_pipes()
1009 thread_data->pipes.msg[1] = -1; in record__thread_data_init_pipes()
1010 thread_data->pipes.ack[0] = -1; in record__thread_data_init_pipes()
1011 thread_data->pipes.ack[1] = -1; in record__thread_data_init_pipes()
1014 static int record__thread_data_open_pipes(struct record_thread *thread_data) in record__thread_data_open_pipes() argument
1016 if (pipe(thread_data->pipes.msg)) in record__thread_data_open_pipes()
1019 if (pipe(thread_data->pipes.ack)) { in record__thread_data_open_pipes()
1020 close(thread_data->pipes.msg[0]); in record__thread_data_open_pipes()
[all …]
/linux/tools/perf/tests/ !
H A Dmmap-thread-lookup.c26 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/drivers/md/dm-vdo/ !
H A Dthread-utils.c22 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 Dthread-utils.h16 int __must_check vdo_create_thread(void (*thread_function)(void *), void *thread_data,
/linux/kernel/printk/ !
H A Dprintk_ringbuffer_kunit_test.c256 struct prbtest_thread_data *thread_data; in test_readerwriter() local
294 thread_data = kunit_kmalloc(test, sizeof(*thread_data), GFP_KERNEL); in test_readerwriter()
295 KUNIT_ASSERT_NOT_NULL(test, thread_data); in test_readerwriter()
296 thread_data->test_data = test_data; in test_readerwriter()
297 thread_data->num = cpu; in test_readerwriter()
299 thread = kthread_run_on_cpu(prbtest_writer, thread_data, cpu, in test_readerwriter()
/linux/tools/testing/selftests/rseq/ !
H A Dparam_test.c479 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[i].data = &data; in test_percpu_spinlock()
[all …]
/linux/tools/perf/bench/ !
H A Dfutex-wake-parallel.c40 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()
H A Dsched-pipe.c34 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()
H A Dnuma.c58 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 = setup_private_data(g->p.bytes_thread); in worker_thread()
[all …]
/linux/tools/testing/selftests/arm64/mte/ !
H A Dcheck_gcr_el1_cswitch.c72 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 Daudit_test.c162 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 Dtest_rhashtable.c73 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()
/linux/tools/power/x86/turbostat/ !
H A Dturbostat.c2114 struct thread_data { struct
2372 struct thread_data *threads;
2444 #define PER_THREAD_PARAMS struct thread_data *t, struct core_data *c, struct pkg_data *p
2446 int for_all_cpus(int (func) (struct thread_data *, struct core_data *, struct pkg_data *), in for_all_cpus() argument
2447 struct thread_data *thread_base, struct core_data *core_base, struct pkg_data *pkg_base) in for_all_cpus()
2454 struct thread_data *t; in for_all_cpus()
2486 int is_cpu_first_thread_in_core(struct thread_data *t, struct core_data *c) in is_cpu_first_thread_in_core()
2491 int is_cpu_first_core_in_package(struct thread_data *t, struct pkg_data *p) in is_cpu_first_core_in_package()
2496 int is_cpu_first_thread_in_package(struct thread_data *t, struct core_data *c, struct pkg_data *p) in is_cpu_first_thread_in_package()
3912 int delta_thread(struct thread_data *new, struct thread_data *old, struct core_data *core_delta) in delta_thread()
[all …]