[ltt-dev] [PATCH 3/5] sh: removed _TIF_KERNEL_TRACE from _TIF_ALLWORK_MASK and _TIF_WORK_MASK

Mathieu Desnoyers compudj at krystal.dyndns.org
Thu Jul 30 09:35:13 EDT 2009


* Giuseppe CAVALLARO (peppe.cavallaro at st.com) wrote:
> _TIF_ALLWORK_MASK and _TIF_WORK_MASK need to fit within a byte as
> described into the header file. So we cannot add _TIF_KERNEL_TRACE
> till to modify either the entry-common.S or the thread_info.h.
> In fact, without this patch the assembler fails with the following
> error:
> 
> AS      arch/sh/kernel/cpu/sh4/entry.o
> arch/sh/kernel/cpu/sh4/entry.S: Assembler messages:
> arch/sh/kernel/cpu/sh4/entry.S:904: Error: offset out of range
> [snip]
> 
> This will be reviewed later.
> 

Hi Giuseppe,

The other patches looks fine, except this one. We should change the
instructions in entry.S so they allow TIF larger than 8 bits.

I'll merge the other patches, but will leave this one aside.

Thanks,

Mathieu

> Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro at st.com>
> ---
>  arch/sh/include/asm/thread_info.h |    8 +++-----
>  1 files changed, 3 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/sh/include/asm/thread_info.h b/arch/sh/include/asm/thread_info.h
> index 956db84..58cc206 100644
> --- a/arch/sh/include/asm/thread_info.h
> +++ b/arch/sh/include/asm/thread_info.h
> @@ -149,19 +149,17 @@ extern void free_thread_info(struct thread_info *ti);
>  
>  /* work to do in syscall trace */
>  #define _TIF_WORK_SYSCALL_MASK	(_TIF_SYSCALL_TRACE | _TIF_SINGLESTEP | \
> -				 _TIF_SYSCALL_AUDIT | _TIF_SECCOMP | \
> -				 _TIF_KERNEL_TRACE)
> +				 _TIF_SYSCALL_AUDIT | _TIF_SECCOMP)
>  
>  /* work to do on any return to u-space */
>  #define _TIF_ALLWORK_MASK	(_TIF_SYSCALL_TRACE | _TIF_SIGPENDING      | \
>  				 _TIF_NEED_RESCHED  | _TIF_SYSCALL_AUDIT   | \
>  				 _TIF_SINGLESTEP    | _TIF_RESTORE_SIGMASK | \
> -				 _TIF_NOTIFY_RESUME | _TIF_KERNEL_TRACE)
> +				 _TIF_NOTIFY_RESUME)
>  
>  /* work to do on interrupt/exception return */
>  #define _TIF_WORK_MASK		(_TIF_ALLWORK_MASK & ~(_TIF_SYSCALL_TRACE | \
> -				 _TIF_SYSCALL_AUDIT | _TIF_SINGLESTEP | \
> -				 _TIF_KERNEL_TRACE))
> +				 _TIF_SYSCALL_AUDIT | _TIF_SINGLESTEP))
>  
>  /* PR_[GS]ET_UNALIGN prctls */
>  #define SH_UAC_SHIFT		TIF_UAC_NOPRINT
> -- 
> 1.6.0.4
> 
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




More information about the lttng-dev mailing list