Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/samples/bpf/
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()
495 int nr_tasks = 1; in main() local
507 nr_tasks = atoi(argv[3]); in main()
519 nr_tasks = min(nr_tasks, nr_cpus); in main()
531 nr_tasks); in main()
[all …]
/kernel/linux/linux-5.10/include/linux/
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()
Dcgroup-defs.h218 int nr_tasks; member
/kernel/linux/linux-5.10/tools/perf/bench/
Dnuma.c118 int nr_tasks; member
517 dprintf("g->p.nr_tasks: %d\n", g->p.nr_tasks); in parse_setup_cpu_list()
593 if (t >= g->p.nr_tasks) { in parse_setup_cpu_list()
620 if (t < g->p.nr_tasks) in parse_setup_cpu_list()
621 printf("# NOTE: %d tasks bound, %d tasks unbound\n", t, g->p.nr_tasks - t); in parse_setup_cpu_list()
654 dprintf("g->p.nr_tasks: %d\n", g->p.nr_tasks); in parse_setup_node_list()
715 if (t >= g->p.nr_tasks || !node_has_cpus(bind_node)) { in parse_setup_node_list()
735 if (t < g->p.nr_tasks) in parse_setup_node_list()
736 printf("# NOTE: %d tasks mem-bound, %d tasks unbound\n", t, g->p.nr_tasks - t); in parse_setup_node_list()
1003 for (t = 0; t < g->p.nr_tasks; t++) { in calc_convergence()
[all …]
/kernel/linux/linux-5.10/kernel/cgroup/
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()
Dcgroup-internal.h114 int nr_tasks; member
Dcgroup.c603 count += link->cset->nr_tasks; in __cgroup_task_count()
2388 mgctx->tset.nr_tasks++; in cgroup_migrate_add_task()
2479 if (tset->nr_tasks) { in cgroup_migrate_execute()
2504 to_cset->nr_tasks++; in cgroup_migrate_execute()
2506 from_cset->nr_tasks--; in cgroup_migrate_execute()
2526 if (tset->nr_tasks) { in cgroup_migrate_execute()
2539 if (tset->nr_tasks) { in cgroup_migrate_execute()
2563 tset->nr_tasks = 0; in cgroup_migrate_execute()
6228 cset->nr_tasks++; in cgroup_post_fork()
6296 cset->nr_tasks--; in cgroup_exit()
/kernel/linux/linux-5.10/block/
Dblk-ioc.c208 atomic_dec(&ioc->nr_tasks); in exit_io_context()
262 atomic_set(&ioc->nr_tasks, 1); in create_task_io_context()
Dblk-cgroup.c1246 if (ioc && atomic_read(&ioc->nr_tasks) > 1) in blkcg_can_attach()
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-sched.c183 unsigned long nr_tasks; member
471 task->nr = sched->nr_tasks; in register_pid()
480 sched->nr_tasks++; in register_pid()
481 sched->tasks = realloc(sched->tasks, sched->nr_tasks * sizeof(struct task_desc *)); in register_pid()
486 printf("registered task #%ld, PID %ld (%s)\n", sched->nr_tasks, pid, comm); 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()
[all …]
/kernel/linux/linux-5.10/kernel/sched/
Dfair.c1119 int nr_tasks; member
2544 grp->nr_tasks++; in task_numa_group()
2566 if (my_grp->nr_tasks > grp->nr_tasks) in task_numa_group()
2572 if (my_grp->nr_tasks == grp->nr_tasks && my_grp > grp) in task_numa_group()
2604 my_grp->nr_tasks--; in task_numa_group()
2605 grp->nr_tasks++; in task_numa_group()
2644 grp->nr_tasks--; in task_numa_free()