How can I investigate the cause of "watchdog: BUG: soft lockup"?

Jan Kiszka jan.kiszka at web.de
Thu Jul 9 16:16:35 CEST 2020


On 09.07.20 15:02, 孙世龙 sunshilong wrote:
> Hi, Jan
> Thank you for taking the time to respond to me.
>
>> In general, system-level tracing can help in such scenarios to gain an
>> overview about what is going on.
> I googled and found many tools and methods.
> I am a little confused about which method(or tool) is the most
> suitable one for this matter(which one should I try firstly).
> Could you please give me some suggestions?
>

Have a look at trace-cmd. Possibly also kernelshark, just note that it
may not visualize all task switches correctly when there are Xenomai
tasks involved.

Jan

> Thank you for your attention to this matter.
> Best Regards.
>
>
> Jan Kiszka <jan.kiszka at web.de> 于2020年7月9日周四 上午1:15写道:
>>
>> On 04.07.20 03:56, 孙世龙 sunshilong via Xenomai wrote:
>>> Hi, list
>>> I encountered the error of "watchdog: BUG: soft lockup" when I sent
>>> data through the can bus.
>>> Could you please give me some hint on how to investigate the cause deeply?
>>> Thank you for your attention to this matter.
>>
>>   From the backtrace, it is not yet clear to me which role Xenomai/I-pipe
>> plays here. Furthermore, it points to an out-of-tree CAN dri (advcan)
>> which makes it even harder to tell cause and effect apart.
>>
>> In general, system-level tracing can help in such scenarios to gain an
>> overview about what is going on.
>>
>> Jan



More information about the Xenomai mailing list