Skip to content
Snippets Groups Projects
Commit d3fb4a90 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

lrdp_v2: Fix DL tasks prio in taskdump module

DL (SCHED_DEADLINE) tasks don't have any priority. They will be
scheduled in EDF (Early Deadline First) fashion. In task_struct,
the prio for such tasks would be -1. The current code treats
prio as an unsigned int and prints DL task prio as 4294967295.
Cast the prio to int before printing it.

Change-Id: Ib92417eeb361fc15d9d536eafe5dfe1baec06d20
parent 2051c119
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,7 @@ from print_out import print_out_str ...@@ -14,6 +14,7 @@ from print_out import print_out_str
from parser_util import register_parser, RamParser, cleanupString from parser_util import register_parser, RamParser, cleanupString
taskhighlight_out = None taskhighlight_out = None
highlight_tasks = "\n=====List of all runing and uninterruptable sleep process====\n" highlight_tasks = "\n=====List of all runing and uninterruptable sleep process====\n"
import ctypes
def find_panic(ramdump, addr_stack, thread_task_name): def find_panic(ramdump, addr_stack, thread_task_name):
if ramdump.arm64: if ramdump.arm64:
...@@ -81,6 +82,8 @@ def dump_thread_group(ramdump, thread_group, task_out, taskhighlight_out, check_ ...@@ -81,6 +82,8 @@ def dump_thread_group(ramdump, thread_group, task_out, taskhighlight_out, check_
thread_task_prio = ramdump.read_int(next_thread_prio) thread_task_prio = ramdump.read_int(next_thread_prio)
if thread_task_prio is None: if thread_task_prio is None:
return return
# Task prio is an integer and it can be -1 for DL tasks.
thread_task_prio = ctypes.c_int(thread_task_prio).value
thread_task_pid = ramdump.read_int(next_thread_pid) thread_task_pid = ramdump.read_int(next_thread_pid)
if thread_task_pid is None: if thread_task_pid is None:
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment