uti: Identify uti thread by clone count

--uti-thread-count <count> is added to mcexec.

Change-Id: Id9ec464412a5bb71e4d9e87d05f79de22d35b067
This commit is contained in:
Masamichi Takagi
2018-09-04 10:27:52 +09:00
parent b0d7f890d0
commit b6ab5911b7
7 changed files with 36 additions and 2 deletions

View File

@@ -3455,6 +3455,8 @@ void runq_add_thread(struct thread *thread, int cpu_id)
procfs_create_thread(thread);
__sync_add_and_fetch(&thread->proc->clone_count, 1);
dkprintf("%s: clone_count is %d\n", __FUNCTION__, thread->proc->clone_count);
rusage_num_threads_inc();
#ifdef RUSAGE_DEBUG
if (rusage->num_threads == 1) {