[Crash-utility] [PATCH] fix error crash: cannot resolve "schedulers"

2018-02-01 Thread Nikola Pajkovsky
dulers" symbol. That way, crash can open vmcore before and after Xen 4.7. Signed-off-by: Nikola Pajkovsky --- xen_hyper.c | 40 +--- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/xen_hyper.c b/xen_hyper.c index 27e44c6e733d..e8268cf40c78 10

Re: [Crash-utility] [PATCH] fix error crash: cannot resolve "schedulers"

2018-02-02 Thread Nikola Pajkovsky
und. It must check if __start_schedulers_array exits, and if it >> does, use it and get size of the section. Otherwise, crash fallback to >> looking up "schedulers" symbol. That way, crash can open vmcore before >> and after Xen 4.7. >> >> Signed-off-by:

[Crash-utility] [PATCH v2 2/2] fix error crash: cannot resolve "schedulers"

2018-02-02 Thread Nikola Pajkovsky
dulers" symbol. That way, crash can open vmcore before and after Xen 4.7. Signed-off-by: Nikola Pajkovsky --- xen_hyper.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/xen_hyper.c b/xen_hyper.c index 479aa1acfd43..2a42e44b1f70 100644 --- a

[Crash-utility] [PATCH v2 1/2] dynamically allocate schedulers_buf

2018-02-02 Thread Nikola Pajkovsky
crash can simply determinate length of xen schedulers struct. static const struct scheduler *schedulers[] = { ... }; Signed-off-by: Nikola Pajkovsky --- xen_hyper.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/xen_hyper.c b/xen_hyper.c index