Something went wrong. Try again.
(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
1234567891011121314151617#!/bin/bash# SPDX-License-Identifier: GPL-2.0. "$(dirname $0)/lib/get_workload_pids.sh"kthreadd_pid=$(pgrep ^kthreadd$)cnt_kernel=0cnt_user=0for pid in $(get_workload_pids)do if [ "$(echo $(ps -o ppid= $pid))" = "$kthreadd_pid" ] then ((++cnt_kernel)) else ((++cnt_user)) fidoneecho "$cnt_kernel kernel threads, $cnt_user user threads"