[Crash-utility] A cosmetic patch for sys -c

Dave Anderson anderson at redhat.com
Tue Sep 5 15:40:10 UTC 2006


Olivier Daudel wrote:

> Hi Dave,
>
> A small cosmetic patch to force sys_ni_syscall when needed.

This patch looks and tests OK; queued for the next release.

By the way, again, your patch was corrupted, but this one
was simple enough to fix...

Thanks,
  Dave


>
> Olivier
> =====================================================
> --- crash-4.0-3.2/kernel.c      2006-08-23 17:09:48.000000000 +0200
> +++ crash-4.0-3.2-patch/kernel.c        2006-09-01 22:14:21.000000000 +0200
> @@ -3189,9 +3189,9 @@
>         struct syment *sp, *spn;
>          long size;
> #ifdef S390X
> -       unsigned int *sct, *sys_call_table, addr;
> +       unsigned int *sct, *sys_call_table, sys_ni_syscall, addr;
> #else
> -       ulong *sys_call_table, *sct, addr;
> +       ulong *sys_call_table, *sct, sys_ni_syscall, addr;
> #endif
>         if (GDB_PATCHED())
>                 error(INFO, "line numbers are not available\n"); @@
> -3208,6 +3208,7 @@
>
>          readmem(symbol_value("sys_call_table"), KVADDR, sys_call_table,
>                  size, "sys_call_table", FAULT_ON_ERROR);
> +       sys_ni_syscall=symbol_value("sys_ni_syscall");
>
>         if (spec)
>                 open_tmpfile();
> @@ -3228,6 +3229,9 @@
>                 }
>
>                 fprintf(fp, (output_radix == 16) ? "%3x  " : "%3d  ", i);
> +               if (sys_ni_syscall && *sct == sys_ni_syscall)
> +                       fprintf(fp, "%-26s ", "sys_ni_syscall");
> +               else
>                 fprintf(fp, "%-26s ", scp);
>
>                 /*
>
> ----------------------------------------------------------------
> Ce message a ete envoye par IMP, grace a l'Universite Paris 10 Nanterre
>
> --
> Crash-utility mailing list
> Crash-utility at redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility




More information about the Crash-utility mailing list