aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorGravatar Thiébaud Weksteen <thiebaud@weksteen.fr> 2015-06-30 14:58:18 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2015-06-30 19:44:58 -0700
commit6ad18b73317714e7d0fad08ee78365ecc817e923 (patch)
tree563331af84bf2909ce98eabc630bb9ad37db3f0e /scripts/gdb/linux/tasks.py
parentscripts/gdb: fix typo in exception name (diff)
downloadlinux-6ad18b73317714e7d0fad08ee78365ecc817e923.tar.gz
linux-6ad18b73317714e7d0fad08ee78365ecc817e923.tar.bz2
linux-6ad18b73317714e7d0fad08ee78365ecc817e923.zip
scripts/gdb: fix PEP8 compliance
Signed-off-by: Thiébaud Weksteen <thiebaud@weksteen.fr> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
-rw-r--r--scripts/gdb/linux/tasks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/gdb/linux/tasks.py b/scripts/gdb/linux/tasks.py
index e2037d9bb7eb..89d38e1580e3 100644
--- a/scripts/gdb/linux/tasks.py
+++ b/scripts/gdb/linux/tasks.py
@@ -18,6 +18,7 @@ from linux import utils
task_type = utils.CachedType("struct task_struct")
+
def task_lists():
global task_type
task_ptr_type = task_type.get_type().pointer()
@@ -38,6 +39,7 @@ def task_lists():
if t == init_task:
return
+
def get_task_by_pid(pid):
for task in task_lists():
if int(task['pid']) == pid: