Re: [PATCH v2] sample-trace-array: Fix sleeping function called from invalid context

2020-06-09 Thread Kefeng Wang
On 2020/6/10 0:29, Divya Indi wrote: On 6/9/20 6:51 AM, Kefeng Wang wrote: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:935 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/5 1 lock held by swapper/5/0: #0: 80001002bd90 (samp

Re: [PATCH v2] sample-trace-array: Fix sleeping function called from invalid context

2020-06-09 Thread Divya Indi
On 6/9/20 6:51 AM, Kefeng Wang wrote: > BUG: sleeping function called from invalid context at > kernel/locking/mutex.c:935 > in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/5 > 1 lock held by swapper/5/0: > #0: 80001002bd90 (samples/ftrace/sample-trace-array.c:38){

[PATCH v2] sample-trace-array: Fix sleeping function called from invalid context

2020-06-09 Thread Kefeng Wang
BUG: sleeping function called from invalid context at kernel/locking/mutex.c:935 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/5 1 lock held by swapper/5/0: #0: 80001002bd90 (samples/ftrace/sample-trace-array.c:38){+.-.}-{0:0}, at: call_timer_fn+0x8/0x3e0 CPU: