path: root/scripts/gdb
diff options
authorKees Cook <>2020-07-08 16:32:13 -0700
committerRafael J. Wysocki <>2020-07-09 14:24:00 +0200
commit8d87ae48ced2dffd5e7247d19eb4c88be6f1c6f1 (patch)
tree8afd2854059b47a136e2ac914798334be08a2324 /scripts/gdb
parentdcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258 (diff)
PM: domains: Fix up terminology with parent/child
The genpd infrastructure uses the terms master/slave, but such uses have no external exposures (not even in Documentation/driver-api/pm/*) and are not mandated by nor associated with any external specifications. Change the language used through-out to parent/child. There was one possible exception in the debugfs node "pm_genpd/pm_genpd_summary" but its path has no hits outside of the kernel itself when performing a code search[1], and it seems even this single usage has been non-functional since it was introduced due to a typo in the Python ("apend" instead of correct "append"). Fix the typo while we're at it. Link: # [1] Signed-off-by: Kees Cook <> Reviewed-by: Greg Kroah-Hartman <> Reviewed-by: Kieran Bingham <> Signed-off-by: Rafael J. Wysocki <>
Diffstat (limited to 'scripts/gdb')
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/gdb/linux/ b/scripts/gdb/linux/
index 6ca93bd2949e..39cd1abd8559 100644
--- a/scripts/gdb/linux/
+++ b/scripts/gdb/linux/
@@ -49,17 +49,17 @@ Output is similar to /sys/kernel/debug/pm_genpd/pm_genpd_summary'''
status_string = 'off-{}'.format(genpd['state_idx'])
- slave_names = []
+ child_names = []
for link in list_for_each_entry(
- genpd['master_links'],
+ genpd['parent_links'],
- 'master_node'):
- slave_names.apend(link['slave']['name'])
+ 'parent_node'):
+ child_names.append(link['child']['name'])
gdb.write('%-30s %-15s %s\n' % (
- ', '.join(slave_names)))
+ ', '.join(child_names)))
# Print devices in domain
for pm_data in list_for_each_entry(genpd['dev_list'],
@@ -70,7 +70,7 @@ Output is similar to /sys/kernel/debug/pm_genpd/pm_genpd_summary'''
gdb.write(' %-50s %s\n' % (kobj_path, rtpm_status_str(dev)))
def invoke(self, arg, from_tty):
- gdb.write('domain status slaves\n');
+ gdb.write('domain status children\n');
gdb.write(' /device runtime status\n');
for genpd in list_for_each_entry(