ACIL FM
Dark
Refresh
Current DIR:
/usr/src/kernels/5.14.0-427.31.1.el9_4.x86_64/scripts/gdb/linux
/
usr
src
kernels
5.14.0-427.31.1.el9_4.x86_64
scripts
gdb
linux
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
clk.py
2.46 MB
chmod
View
DL
Edit
Rename
Delete
config.py
1.27 MB
chmod
View
DL
Edit
Rename
Delete
constants.py.in
1.75 MB
chmod
View
DL
Edit
Rename
Delete
cpus.py
5.2 MB
chmod
View
DL
Edit
Rename
Delete
device.py
5.65 MB
chmod
View
DL
Edit
Rename
Delete
dmesg.py
5.82 MB
chmod
View
DL
Edit
Rename
Delete
genpd.py
2.52 MB
chmod
View
DL
Edit
Rename
Delete
lists.py
4.16 MB
chmod
View
DL
Edit
Rename
Delete
Makefile
667 B
chmod
View
DL
Edit
Rename
Delete
modules.py
2.54 MB
chmod
View
DL
Edit
Rename
Delete
proc.py
8.54 MB
chmod
View
DL
Edit
Rename
Delete
rbtree.py
4.25 MB
chmod
View
DL
Edit
Rename
Delete
symbols.py
6.88 MB
chmod
View
DL
Edit
Rename
Delete
tasks.py
3.55 MB
chmod
View
DL
Edit
Rename
Delete
timerlist.py
7.55 MB
chmod
View
DL
Edit
Rename
Delete
utils.py
5.03 MB
chmod
View
DL
Edit
Rename
Delete
__init__.py
55 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/src/kernels/5.14.0-427.31.1.el9_4.x86_64/scripts/gdb/linux/genpd.py
# SPDX-License-Identifier: GPL-2.0 # # Copyright (c) NXP 2019 import gdb import sys from linux.utils import CachedType from linux.lists import list_for_each_entry generic_pm_domain_type = CachedType('struct generic_pm_domain') pm_domain_data_type = CachedType('struct pm_domain_data') device_link_type = CachedType('struct device_link') def kobject_get_path(kobj): path = kobj['name'].string() parent = kobj['parent'] if parent: path = kobject_get_path(parent) + '/' + path return path def rtpm_status_str(dev): if dev['power']['runtime_error']: return 'error' if dev['power']['disable_depth']: return 'unsupported' _RPM_STATUS_LOOKUP = [ "active", "resuming", "suspended", "suspending" ] return _RPM_STATUS_LOOKUP[dev['power']['runtime_status']] class LxGenPDSummary(gdb.Command): '''Print genpd summary Output is similar to /sys/kernel/debug/pm_genpd/pm_genpd_summary''' def __init__(self): super(LxGenPDSummary, self).__init__('lx-genpd-summary', gdb.COMMAND_DATA) def summary_one(self, genpd): if genpd['status'] == 0: status_string = 'on' else: status_string = 'off-{}'.format(genpd['state_idx']) child_names = [] for link in list_for_each_entry( genpd['parent_links'], device_link_type.get_type().pointer(), 'parent_node'): child_names.append(link['child']['name']) gdb.write('%-30s %-15s %s\n' % ( genpd['name'].string(), status_string, ', '.join(child_names))) # Print devices in domain for pm_data in list_for_each_entry(genpd['dev_list'], pm_domain_data_type.get_type().pointer(), 'list_node'): dev = pm_data['dev'] kobj_path = kobject_get_path(dev['kobj']) gdb.write(' %-50s %s\n' % (kobj_path, rtpm_status_str(dev))) def invoke(self, arg, from_tty): gdb.write('domain status children\n'); gdb.write(' /device runtime status\n'); gdb.write('----------------------------------------------------------------------\n'); for genpd in list_for_each_entry( gdb.parse_and_eval('&gpd_list'), generic_pm_domain_type.get_type().pointer(), 'gpd_list_node'): self.summary_one(genpd) LxGenPDSummary()
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply