xref: /XiangShan/debug/perf_sbuffer.sh (revision f320e0f01bd645f0a3045a8a740e60dd770734a9)
1#!/bin/bash
2
3#***************************************************************************************
4# Copyright (c) 2020-2021 Institute of Computing Technology, Chinese Academy of Sciences
5# Copyright (c) 2020-2021 Peng Cheng Laboratory
6#
7# XiangShan is licensed under Mulan PSL v2.
8# You can use this software according to the terms and conditions of the Mulan PSL v2.
9# You may obtain a copy of Mulan PSL v2 at:
10#          http://license.coscl.org.cn/MulanPSL2
11#
12# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
13# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
14# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
15#
16# See the Mulan PSL v2 for more details.
17#***************************************************************************************
18
19
20echo -n "store cnt: "
21grep "accept req" $1 | wc -l
22
23echo -n "dcache req cnt: "
24grep "send buf" $1 | wc -l
25
26echo -n "req[0] blocked: "
27grep "\[0\] blocked by sbuffer" $1 | wc -l
28
29echo -n "req[1] blocked: "
30grep "\[1\] blocked by sbuffer" $1 | wc -l
31
32echo -n "sbuffer cnt = 15: "
33grep "sbuffer entry cnt: 15" $1 | wc -l
34
35echo -n "sbuffer cnt = 16: "
36grep "sbuffer entry cnt: 16" $1 | wc -l
37