[COMMITTED][PATCH 1/4] C-SKY: fix sigcontext miss match
Mao Han
han_mao@c-sky.com
Mon Mar 11 03:00:00 GMT 2019
On Thu, Mar 07, 2019 at 09:34:03AM +0800, Mao Han wrote:
> C-SKY defines SIGCONTEXT as siginfo_t *_si, struct ucontext_t * for
> __profil_counter. ucontext_t get an extra __mask field which is miss
> match with the struct sigcontext from linux kernel. The time value
> from gprof report will be always zero without this patch. This
> patch also fix the registers sequence in register-dump.h.
>
> * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
> * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
> in mcontext_t
> ---
> ChangeLog | 6 ++
> sysdeps/unix/sysv/linux/csky/register-dump.h | 127 +++++++++++++--------------
> sysdeps/unix/sysv/linux/csky/sys/ucontext.h | 1 -
> 3 files changed, 68 insertions(+), 66 deletions(-)
>
> diff --git a/ChangeLog b/ChangeLog
> index 53c5d2f..dba3547 100644
Committed. Tested on C-SKY.
More information about the Libc-alpha
mailing list