Home
last modified time | relevance | path

Searched refs:nr_tasks (Results 1 – 10 of 10) sorted by relevance

/linux/samples/bpf/
A Dtest_lru_dist.c311 int nr_tasks, unsigned int lru_size) in test_parallel_lru_dist() argument
324 nr_tasks * lru_size); in test_parallel_lru_dist()
330 run_parallel(nr_tasks, do_test_lru_dist, child_data); in test_parallel_lru_dist()
468 static void test_parallel_lru_loss(int map_type, int map_flags, int nr_tasks) in test_parallel_lru_loss() argument
481 nr_tasks * (1000 + 200)); in test_parallel_lru_loss()
485 run_parallel(nr_tasks, do_test_parallel_lru_loss, &map_fd); in test_parallel_lru_loss()
494 int nr_tasks = 1; in main() local
506 nr_tasks = atoi(argv[3]); in main()
516 nr_tasks = min(nr_tasks, nr_cpus); in main()
528 nr_tasks); in main()
[all …]
/linux/tools/perf/bench/
A Dnuma.c118 int nr_tasks; member
597 if (t >= g->p.nr_tasks) { in parse_setup_cpu_list()
624 if (t < g->p.nr_tasks) in parse_setup_cpu_list()
739 if (t < g->p.nr_tasks) in parse_setup_node_list()
1015 for (t = 0; t < g->p.nr_tasks; t++) { in calc_convergence()
1035 nr_min = g->p.nr_tasks; in calc_convergence()
1048 BUG_ON(sum > g->p.nr_tasks); in calc_convergence()
1050 if (0 && (sum < g->p.nr_tasks)) { in calc_convergence()
1379 g->p.nr_tasks, g->p.nr_tasks == 1 ? "task" : "tasks", nr_numa_nodes(), g->p.nr_cpus); in print_summary()
1399 for (t = 0; t < g->p.nr_tasks; t++) { in init_thread_data()
[all …]
/linux/include/linux/
A Diocontext.h102 atomic_t nr_tasks; member
136 WARN_ON_ONCE(atomic_read(&ioc->nr_tasks) <= 0); in ioc_task_link()
137 atomic_inc(&ioc->nr_tasks); in ioc_task_link()
A Dcgroup-defs.h222 int nr_tasks; member
/linux/kernel/cgroup/
A Ddebug.c56 if (refcnt > cset->nr_tasks) in current_css_set_read()
57 seq_printf(seq, " +%d", refcnt - cset->nr_tasks); in current_css_set_read()
149 if (refcnt - cset->nr_tasks > 0) { in cgroup_css_links_read()
150 int extra = refcnt - cset->nr_tasks; in cgroup_css_links_read()
185 WARN_ON(count != cset->nr_tasks); in cgroup_css_links_read()
A Dcgroup-internal.h114 int nr_tasks; member
A Dcgroup.c631 count += link->cset->nr_tasks; in __cgroup_task_count()
2373 mgctx->tset.nr_tasks++; in cgroup_migrate_add_task()
2464 if (tset->nr_tasks) { in cgroup_migrate_execute()
2489 to_cset->nr_tasks++; in cgroup_migrate_execute()
2491 from_cset->nr_tasks--; in cgroup_migrate_execute()
2511 if (tset->nr_tasks) { in cgroup_migrate_execute()
2524 if (tset->nr_tasks) { in cgroup_migrate_execute()
2548 tset->nr_tasks = 0; in cgroup_migrate_execute()
6315 cset->nr_tasks++; in cgroup_post_fork()
6396 cset->nr_tasks--; in cgroup_exit()
/linux/block/
A Dblk-ioc.c208 atomic_dec(&ioc->nr_tasks); in exit_io_context()
262 atomic_set(&ioc->nr_tasks, 1); in create_task_io_context()
/linux/tools/perf/
A Dbuiltin-sched.c183 unsigned long nr_tasks; member
471 task->nr = sched->nr_tasks; in register_pid()
480 sched->nr_tasks++; in register_pid()
497 for (i = 0; i < sched->nr_tasks; i++) { in print_task_traces()
509 for (i = 0; i < sched->nr_tasks; i++) { in add_cross_task_wakeups()
512 if (j == sched->nr_tasks) in add_cross_task_wakeups()
581 limit.rlim_cur += sched->nr_tasks - cur_task; in self_open_counters()
679 for (i = 0; i < sched->nr_tasks; i++) { in create_tasks()
704 for (i = 0; i < sched->nr_tasks; i++) { in wait_for_tasks()
717 for (i = 0; i < sched->nr_tasks; i++) { in wait_for_tasks()
[all …]
/linux/kernel/sched/
A Dfair.c1033 int nr_tasks; member
2460 grp->nr_tasks++; in task_numa_group()
2482 if (my_grp->nr_tasks > grp->nr_tasks) in task_numa_group()
2488 if (my_grp->nr_tasks == grp->nr_tasks && my_grp > grp) in task_numa_group()
2520 my_grp->nr_tasks--; in task_numa_group()
2521 grp->nr_tasks++; in task_numa_group()
2560 grp->nr_tasks--; in task_numa_free()

Completed in 47 milliseconds