Searched refs:td (Results 1 – 3 of 3) sorted by relevance
/tools/perf/bench/ |
D | sched-pipe.c | 57 struct thread_data *td = __tdata; in worker_thread() local 62 if (!td->nr) { in worker_thread() 63 ret = read(td->pipe_read, &m, sizeof(int)); in worker_thread() 65 ret = write(td->pipe_write, &m, sizeof(int)); in worker_thread() 68 ret = write(td->pipe_write, &m, sizeof(int)); in worker_thread() 70 ret = read(td->pipe_read, &m, sizeof(int)); in worker_thread() 80 struct thread_data threads[2], *td; in bench_sched_pipe() local 103 td = threads + t; in bench_sched_pipe() 105 td->nr = t; in bench_sched_pipe() 108 td->pipe_read = pipe_1[0]; in bench_sched_pipe() [all …]
|
D | numa.c | 434 struct thread_data *td; in parse_setup_cpu_list() local 521 td = g->threads + t; in parse_setup_cpu_list() 531 CPU_ZERO(&td->bind_cpumask); in parse_setup_cpu_list() 534 CPU_SET(cpu, &td->bind_cpumask); in parse_setup_cpu_list() 571 struct thread_data *td; in parse_setup_node_list() local 643 td = g->threads + t; in parse_setup_node_list() 650 td->bind_node = bind_node; in parse_setup_node_list() 823 struct thread_data *td; in count_process_nodes() local 828 td = g->threads + task_nr; in count_process_nodes() 830 node = numa_node_of_cpu(td->curr_cpu); in count_process_nodes() [all …]
|
/tools/perf/tests/ |
D | mmap-thread-lookup.c | 28 static int thread_init(struct thread_data *td) in thread_init() argument 41 td->map = map; in thread_init() 42 td->tid = syscall(SYS_gettid); in thread_init() 44 pr_debug("tid = %d, map = %p\n", td->tid, map); in thread_init() 50 struct thread_data *td = arg; in thread_fn() local 54 if (thread_init(td)) in thread_fn() 58 ret = write(td->ready[1], &go, sizeof(int)); in thread_fn() 69 munmap(td->map, page_size); in thread_fn() 75 struct thread_data *td = &threads[i]; in thread_create() local 78 if (pipe(td->ready)) in thread_create() [all …]
|