Skip to content

Support swapper process stack_trace? #462

@qiyeliu

Description

@qiyeliu

Currently using stack_trace to obtain the stack of the swapper thread encounters the following problems:
`>>> trace = stack_trace(0)
Traceback (most recent call last):
File "/usr/lib/python3.8/code.py", line 90, in runcode
exec(code, self.locals)
File "", line 1, in
File "/usr/local/lib/python3.8/dist-packages/drgn-0.0.30+unknown-py3.8-linux-x86_64.egg/drgn/init.py", line 288, in stack_trace
return get_default_prog().stack_trace(thread)
LookupError: task not found

`
Is there a way to trace back the swapper on each cpu?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions