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