[PATCH] Prevent infinite loop if unwind fails

2013-11-22 Thread Francis Giraldeau
Unwind may loop forever if sample is incomplete or bogus. Bound the number of unw_step() that yield the same IP to prevent infinite loop. Signed-off-by: Francis Giraldeau francis.girald...@gmail.com --- tools/perf/util/unwind.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff

Re: clocksource_watchdog causing scheduling of timers every second (was [v13] support "task_isolation" mode)

2016-07-29 Thread Francis Giraldeau
I tested this patch on 4.7 and confirm that irq_work does not occurs anymore on the isolated cpu. Thanks! I don't know of any utility to test the task isolation feature, so I started one: https://github.com/giraldeau/taskisol The script exp.sh runs the taskisol to test five different

Re: Ping: [PATCH v15 00/13] support "task_isolation" mode

2016-09-07 Thread Francis Giraldeau
On 2016-08-29 12:27 PM, Chris Metcalf wrote: > On 8/16/2016 5:19 PM, Chris Metcalf wrote: >> Here is a respin of the task-isolation patch set. > > No concerns have been raised yet with the v15 version of the patch series > in the two weeks since I posted it, and I think I have addressed all >

Re: Ping: [PATCH v15 00/13] support "task_isolation" mode

2016-09-07 Thread Francis Giraldeau
On 2016-09-07 05:11 PM, Francis Giraldeau wrote: > The syscall test fails on x86: > $ sudo ./isolation > [...] > test_syscall: FAIL (0x100) > test_syscall (SIGUSR1): FAIL (0x100) > > I wanted to debug this problem with gdb and a KVM virtual machine. However, &

Re: Ping: [PATCH v15 00/13] support "task_isolation" mode

2016-09-08 Thread Francis Giraldeau
On 2016-09-07 05:11 PM, Francis Giraldeau wrote: > The syscall test fails on x86: > $ sudo ./isolation > [...] > test_syscall: FAIL (0x100) > test_syscall (SIGUSR1): FAIL (0x100) The fix is indeed very simple: diff --git a/arch/x86/include/asm/thread_info.h b/a

Re: Ping: [PATCH v15 00/13] support "task_isolation" mode

2016-09-13 Thread Francis Giraldeau
On 2016-09-12 08:05 PM, Rafael J. Wysocki wrote: > On Monday, September 12, 2016 11:15:45 PM Rafael J. Wysocki wrote: >> On Monday, September 12, 2016 06:14:44 PM Peter Zijlstra wrote: >>> On Mon, Sep 12, 2016 at 12:01:58PM -0400, Chris Metcalf wrote: >>>> On 9/7/2

Re: Ping: [PATCH v15 00/13] support "task_isolation" mode

2016-09-12 Thread Francis Giraldeau
On 2016-09-12 12:01 PM, Chris Metcalf wrote: > The syscall test fails on x86: >> >> $ sudo ./isolation >> [...] >> test_syscall: FAIL (0x100) >> test_syscall (SIGUSR1): FAIL (0x100) > > Your next email suggested adding TIF_TASK_ISOLATION to the set of > flags in

[PATCH] arch/arm: enable task isolation functionality

2016-09-22 Thread Francis Giraldeau
in the literal pool. The rest of the patch is straightforward and reflects what is done on other architectures. Signed-off-by: Francis Giraldeau <francis.girald...@gmail.com> --- arch/arm/Kconfig | 1 + arch/arm/include/asm/thread_info.h

[PATCH] Prevent infinite loop if unwind fails

2013-11-22 Thread Francis Giraldeau
Unwind may loop forever if sample is incomplete or bogus. Bound the number of unw_step() that yield the same IP to prevent infinite loop. Signed-off-by: Francis Giraldeau --- tools/perf/util/unwind.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/perf/util

[PATCH] arch/arm: enable task isolation functionality

2016-09-22 Thread Francis Giraldeau
in the literal pool. The rest of the patch is straightforward and reflects what is done on other architectures. Signed-off-by: Francis Giraldeau --- arch/arm/Kconfig | 1 + arch/arm/include/asm/thread_info.h | 8 ++-- arch/arm/kernel/entry

Re: Ping: [PATCH v15 00/13] support "task_isolation" mode

2016-09-07 Thread Francis Giraldeau
On 2016-08-29 12:27 PM, Chris Metcalf wrote: > On 8/16/2016 5:19 PM, Chris Metcalf wrote: >> Here is a respin of the task-isolation patch set. > > No concerns have been raised yet with the v15 version of the patch series > in the two weeks since I posted it, and I think I have addressed all >

Re: Ping: [PATCH v15 00/13] support "task_isolation" mode

2016-09-07 Thread Francis Giraldeau
On 2016-09-07 05:11 PM, Francis Giraldeau wrote: > The syscall test fails on x86: > $ sudo ./isolation > [...] > test_syscall: FAIL (0x100) > test_syscall (SIGUSR1): FAIL (0x100) > > I wanted to debug this problem with gdb and a KVM virtual machine. However, &

Re: Ping: [PATCH v15 00/13] support "task_isolation" mode

2016-09-08 Thread Francis Giraldeau
On 2016-09-07 05:11 PM, Francis Giraldeau wrote: > The syscall test fails on x86: > $ sudo ./isolation > [...] > test_syscall: FAIL (0x100) > test_syscall (SIGUSR1): FAIL (0x100) The fix is indeed very simple: diff --git a/arch/x86/include/asm/thread_info.h b/a

Re: Ping: [PATCH v15 00/13] support "task_isolation" mode

2016-09-12 Thread Francis Giraldeau
On 2016-09-12 12:01 PM, Chris Metcalf wrote: > The syscall test fails on x86: >> >> $ sudo ./isolation >> [...] >> test_syscall: FAIL (0x100) >> test_syscall (SIGUSR1): FAIL (0x100) > > Your next email suggested adding TIF_TASK_ISOLATION to the set of > flags in

Re: Ping: [PATCH v15 00/13] support "task_isolation" mode

2016-09-13 Thread Francis Giraldeau
On 2016-09-12 08:05 PM, Rafael J. Wysocki wrote: > On Monday, September 12, 2016 11:15:45 PM Rafael J. Wysocki wrote: >> On Monday, September 12, 2016 06:14:44 PM Peter Zijlstra wrote: >>> On Mon, Sep 12, 2016 at 12:01:58PM -0400, Chris Metcalf wrote: >>>> On 9/7/2

Re: clocksource_watchdog causing scheduling of timers every second (was [v13] support "task_isolation" mode)

2016-07-29 Thread Francis Giraldeau
I tested this patch on 4.7 and confirm that irq_work does not occurs anymore on the isolated cpu. Thanks! I don't know of any utility to test the task isolation feature, so I started one: https://github.com/giraldeau/taskisol The script exp.sh runs the taskisol to test five different