xref: /linux/tools/tracing/rtla/tests/scripts/check-priority.sh (revision b2128290c29902315e632ea59e0504d6bc9e9b42)
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"
9