Re: [PATCH v2] scripts/gdb: fix list_for_each

2021-01-05 Thread George Prekas
On 9/24/2020 9:20 AM, George Prekas wrote: If the list is uninitialized (next pointer is NULL), list_for_each gets stuck in an infinite loop. Print a message and treat list as empty. Signed-off-by: George Prekas ---  scripts/gdb/linux/lists.py | 5 +  1 file changed, 5 insertions(+) diff

Re: [PATCH] latency improvement in __smp_call_single_queue

2020-09-24 Thread George Prekas
On 9/24/2020 3:42 AM, pet...@infradead.org wrote: > On Wed, Sep 23, 2020 at 10:00:41AM -0500, George Prekas wrote: >> If an interrupt arrives between llist_add and >> send_call_function_single_ipi in the following code snippet, then the >> remote CPU will not receive the I

[PATCH v2] scripts/gdb: fix list_for_each

2020-09-24 Thread George Prekas
If the list is uninitialized (next pointer is NULL), list_for_each gets stuck in an infinite loop. Print a message and treat list as empty. Signed-off-by: George Prekas ---  scripts/gdb/linux/lists.py | 5 +  1 file changed, 5 insertions(+) diff --git a/scripts/gdb/linux/lists.py b/scripts

[PATCH] latency improvement in __smp_call_single_queue

2020-09-23 Thread George Prekas
_ipi |   |     |   | f1     |   | f2 The call from CPU 1 for function f2 will be delayed because CPU 0 was interrupted. Signed-off-by: George Prekas ---  kernel/smp.c

Re: [PATCH] scripts/gdb: fix list_for_each

2020-09-23 Thread George Prekas
Hi Kieran, On 9/22/2020 2:11 PM, Kieran Bingham wrote: > Hi George, > > On 22/09/2020 18:17, Prekas, George wrote: >> >> On 9/22/2020 9:32 AM, Jan Kiszka wrote: >>> >>> On 22.09.20 16:28, George Prekas wrote: >>>> If the next pointer is NULL

[PATCH] scripts/gdb: fix list_for_each

2020-09-22 Thread George Prekas
If the next pointer is NULL, list_for_each gets stuck in an infinite loop. Signed-off-by: George Prekas ---  scripts/gdb/linux/lists.py | 2 ++  1 file changed, 2 insertions(+) diff --git a/scripts/gdb/linux/lists.py b/scripts/gdb/linux/lists.py index c487ddf09d38..424a91c1aa8b 100644 --- a