Searched refs:nr_tasks (Results 1 - 6 of 6) sorted by relevance
/linux-4.1.27/tools/perf/bench/ |
H A D | numa.c | 103 int nr_tasks; member in struct:params 441 dprintf("g->p.nr_tasks: %d\n", g->p.nr_tasks); parse_setup_cpu_list() 517 if (t >= g->p.nr_tasks) { parse_setup_cpu_list() 544 if (t < g->p.nr_tasks) parse_setup_cpu_list() 545 printf("# NOTE: %d tasks bound, %d tasks unbound\n", t, g->p.nr_tasks - t); parse_setup_cpu_list() 578 dprintf("g->p.nr_tasks: %d\n", g->p.nr_tasks); parse_setup_node_list() 639 if (t >= g->p.nr_tasks) { parse_setup_node_list() 659 if (t < g->p.nr_tasks) parse_setup_node_list() 660 printf("# NOTE: %d tasks mem-bound, %d tasks unbound\n", t, g->p.nr_tasks - t); parse_setup_node_list() 930 for (t = 0; t < g->p.nr_tasks; t++) { calc_convergence() 950 nr_min = g->p.nr_tasks; calc_convergence() 961 BUG_ON(sum > g->p.nr_tasks); calc_convergence() 963 if (0 && (sum < g->p.nr_tasks)) calc_convergence() 1080 if (g->nr_tasks_working == g->p.nr_tasks) worker_thread() 1273 g->p.nr_tasks, g->p.nr_tasks == 1 ? "task" : "tasks", g->p.nr_nodes, g->p.nr_cpus); print_summary() 1288 ssize_t size = sizeof(*g->threads)*g->p.nr_tasks; init_thread_data() 1293 for (t = 0; t < g->p.nr_tasks; t++) { init_thread_data() 1309 ssize_t size = sizeof(*g->threads)*g->p.nr_tasks; deinit_thread_data() 1359 g->p.nr_tasks = g->p.nr_proc*g->p.nr_threads; init() 1456 while (g->nr_tasks_started != g->p.nr_tasks) __bench_numa() 1459 BUG_ON(g->nr_tasks_started != g->p.nr_tasks); __bench_numa() 1502 for (t = 0; t < g->p.nr_tasks; t++) { __bench_numa() 1524 runtime_avg = (double)runtime_ns_sum / g->p.nr_tasks / 1e9; __bench_numa() 1544 print_res(name, bytes / g->p.nr_tasks / 1e9, __bench_numa() 1550 print_res(name, runtime_sec_max * 1e9 / (bytes / g->p.nr_tasks), __bench_numa() 1553 print_res(name, bytes / g->p.nr_tasks / 1e9 / runtime_sec_max, __bench_numa()
|
/linux-4.1.27/include/linux/ |
H A D | iocontext.h | 100 atomic_t nr_tasks; member in struct:io_context 140 WARN_ON_ONCE(atomic_read(&ioc->nr_tasks) <= 0); ioc_task_link() 141 atomic_inc(&ioc->nr_tasks); ioc_task_link()
|
/linux-4.1.27/tools/perf/ |
H A D | builtin-sched.c | 127 unsigned long nr_tasks; member in struct:perf_sched 352 task->nr = sched->nr_tasks; register_pid() 361 sched->nr_tasks++; register_pid() 362 sched->tasks = realloc(sched->tasks, sched->nr_tasks * sizeof(struct task_desc *)); register_pid() 367 printf("registered task #%ld, PID %ld (%s)\n", sched->nr_tasks, pid, comm); register_pid() 378 for (i = 0; i < sched->nr_tasks; i++) { print_task_traces() 390 for (i = 0; i < sched->nr_tasks; i++) { add_cross_task_wakeups() 393 if (j == sched->nr_tasks) add_cross_task_wakeups() 462 limit.rlim_cur += sched->nr_tasks - cur_task; self_open_counters() 560 for (i = 0; i < sched->nr_tasks; i++) { create_tasks() 585 for (i = 0; i < sched->nr_tasks; i++) { wait_for_tasks() 598 for (i = 0; i < sched->nr_tasks; i++) { wait_for_tasks() 621 for (i = 0; i < sched->nr_tasks; i++) { wait_for_tasks()
|
/linux-4.1.27/block/ |
H A D | blk-ioc.c | 209 atomic_dec(&ioc->nr_tasks); exit_io_context() 246 atomic_set(&ioc->nr_tasks, 1); create_task_io_context()
|
H A D | blk-cgroup.c | 919 if (ioc && atomic_read(&ioc->nr_tasks) > 1) cgroup_taskset_for_each()
|
/linux-4.1.27/kernel/sched/ |
H A D | fair.c | 874 spinlock_t lock; /* nr_tasks, tasks */ 875 int nr_tasks; member in struct:numa_group 1936 grp->nr_tasks++; task_numa_group() 1958 if (my_grp->nr_tasks > grp->nr_tasks) task_numa_group() 1964 if (my_grp->nr_tasks == grp->nr_tasks && my_grp > grp) task_numa_group() 1996 my_grp->nr_tasks--; task_numa_group() 1997 grp->nr_tasks++; task_numa_group() 2025 grp->nr_tasks--; task_numa_free() 5368 * O(nm log n), n := nr_cpus, m := nr_tasks (8)
|
Completed in 190 milliseconds