Re: [PATCH 05/16] perf test: Fix hist testcases when kptr_restrict is on

2015-12-14 Thread Wangnan (F)
Hi, On 2015/12/15 1:44, Arnaldo Carvalho de Melo wrote: From: Namhyung Kim Currently if kptr_restrict is enabled, all hist tests failed with segfaults. This is because machine__create_kernel_maps() in setup_fake_machine() failed in that situation, and it called machine__delete() on the error

[PATCH 05/16] perf test: Fix hist testcases when kptr_restrict is on

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Currently if kptr_restrict is enabled, all hist tests failed with segfaults. This is because machine__create_kernel_maps() in setup_fake_machine() failed in that situation, and it called machine__delete() on the error path. But outer callers again called machines__exit()

Re: [PATCH 05/16] perf test: Fix hist testcases when kptr_restrict is on

2015-12-14 Thread Wangnan (F)
Hi, On 2015/12/15 1:44, Arnaldo Carvalho de Melo wrote: From: Namhyung Kim Currently if kptr_restrict is enabled, all hist tests failed with segfaults. This is because machine__create_kernel_maps() in setup_fake_machine() failed in that situation, and it called

[PATCH 05/16] perf test: Fix hist testcases when kptr_restrict is on

2015-12-14 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Currently if kptr_restrict is enabled, all hist tests failed with segfaults. This is because machine__create_kernel_maps() in setup_fake_machine() failed in that situation, and it called machine__delete() on the error path. But outer callers again called