1#!/bin/sh 2################################################################################ 3# 4# Copyright (C) 2022 Huawei Device Co., Ltd. 5# SPDX-License-Identifier: GPL-2.0 6# 7# Unless required by applicable law or agreed to in writing, software 8# distributed under the License is distributed on an "AS IS" BASIS, 9# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10# See the License for the specific language governing permissions and 11# limitations under the License. 12# 13################################################################################ 14# File: sched_rtg04.sh 15# 16# Description: sched RTG tracing test 17# 18# Authors: liudanning - liudanning@h-partners.com 19# 20# History: April 6 2022 - init scripts 21# 22################################################################################ 23 24source tst_oh.sh 25 26do_setup() 27{ 28} 29 30do_test() 31{ 32 ls /sys/kernel/debug/tracing/events/rtg/ | grep find_rtg_cpu && 33 ls /sys/kernel/debug/tracing/events/rtg/ | grep sched_rtg_task_each && 34 ls /sys/kernel/debug/tracing/events/rtg/ | grep sched_rtg_valid_normalized_util 35 if [ $? -eq 0 ]; then 36 tst_res TPASS "trace nodes are existed" 37 else 38 tst_res TFAIL "trace nodes are not existed" 39 fi 40} 41 42do_clean() 43{ 44 45} 46 47do_setup 48do_test 49do_clean 50tst_exit