[Crash-utility] [PATCH] Skip alternate hz calculation in Linux 4.8+

HAGIO KAZUHITO(萩尾 一仁) k-hagio-ab at nec.com
Mon Apr 26 04:57:34 UTC 2021


-----Original Message-----
> > Hi Kazu,
> >
> >> Thank you for the report and patch, there is another discussion about the HZ calculation [1], but anyway
> I think we should have this patch.
> >> Acked-by: Kazuhito Hagio <k-hagio-ab at nec.com>
> >> Could I have your Signed-off-by: tag?
> > Yes, included below.  Thanks.
> >
> > --- task.c.orig 2021-04-14 16:07:52.021137849 -0400
> > +++ task.c      2021-04-14 16:11:03.406626370 -0400
> > @@ -417,7 +417,8 @@
> >
> >         STRUCT_SIZE_INIT(cputime_t, "cputime_t");
> >
> > -       if (symbol_exists("cfq_slice_async")) {
> > +       if ((THIS_KERNEL_VERSION < LINUX(4,8,0)) &&
> > +            symbol_exists("cfq_slice_async")) {
> >                 uint cfq_slice_async;
> >
> >                 get_symbol_data("cfq_slice_async", sizeof(int),
> >
> > Signed-off-by: Martin Moore <martin.moore at hpe.com>

Thanks, applied with your tag:
https://github.com/crash-utility/crash/commit/f1f2cd5c9f3a51570492ea88647b5aeec57b309f

Kazu





More information about the Crash-utility mailing list