projects/linux·blob master · refs

8 lines · 311 B

1#!/bin/bash
2# SPDX-License-Identifier: GPL-2.0
3. "$(dirname $0)/lib/get_workload_pids.sh"
4for pid in $(get_workload_pids)
5do
6 chrt -p $pid | cut -d ':' -f 2 | head -n1 | grep "^ $1\$" >/dev/null
7 chrt -p $pid | cut -d ':' -f 2 | tail -n1 | grep "^ $2\$" >/dev/null
8done && echo "Priorities are set correctly"