aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/powerpc-hcalls.py
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2022-05-06 01:17:59 +0000
committerDave Airlie <[email protected]>2022-05-06 01:22:03 +0000
commit5727375215b0915f28806c337a7ba9835efd340b (patch)
treea6adb49228a1607198ba97f5a1d54f966994e2b5 /tools/perf/scripts/python/powerpc-hcalls.py
parentMerge tag 'drm-misc-fixes-2022-05-05' of git://anongit.freedesktop.org/drm/dr... (diff)
parentdrm/msm/dp: remove fail safe mode related code (diff)
downloadkernel-5727375215b0915f28806c337a7ba9835efd340b.tar.gz
kernel-5727375215b0915f28806c337a7ba9835efd340b.zip
Merge tag 'drm-msm-fixes-2022-04-30' of https://gitlab.freedesktop.org/drm/msm into drm-fixes
single lockdep fix. Signed-off-by: Dave Airlie <[email protected]> From: Rob Clark <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/CAF6AEGtkzqzxDLp82OaKXVrWd7nWZtkxKsuOK1wOGCDz7qF-dA@mail.gmail.com
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions
import sys import re import bisect import collections from dataclasses import dataclass from typing import (Dict, Optional) sys.path.append(os.environ['PERF_EXEC_PATH'] + \ '/scripts/python/Perf-Trace-Util/lib/Perf/Trace') @dataclass(frozen=True) class IomemEntry: """Read from a line in /proc/iomem""" begin: int end: int indent: int label: str # Physical memory layout from /proc/iomem. Key is the indent and then # a list of ranges. iomem: Dict[int, list[IomemEntry]] = collections.defaultdict(list) # Child nodes from the iomem parent. children: Dict[IomemEntry, set[IomemEntry]] = collections.defaultdict(set) # Maximum indent seen before an entry in the iomem file. max_indent: int = 0 # Count for each range of memory. load_mem_type_cnt: Dict[IomemEntry, int] = collections.Counter()