lkml.org 
[lkml]   [2009]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC patch 01/21] LTTng Kernel Trace Thread Flag Alpha
    Add a thread flag to activate system-wide syscall tracing.

    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
    ---
    arch/alpha/include/asm/thread_info.h | 4 +++-
    1 file changed, 3 insertions(+), 1 deletion(-)

    Index: linux-2.6-lttng/arch/alpha/include/asm/thread_info.h
    ===================================================================
    --- linux-2.6-lttng.orig/arch/alpha/include/asm/thread_info.h 2009-01-09 18:15:55.000000000 -0500
    +++ linux-2.6-lttng/arch/alpha/include/asm/thread_info.h 2009-01-09 18:17:45.000000000 -0500
    @@ -74,6 +74,7 @@ register struct thread_info *__current_t
    #define TIF_UAC_SIGBUS 7
    #define TIF_MEMDIE 8
    #define TIF_RESTORE_SIGMASK 9 /* restore signal mask in do_signal */
    +#define TIF_KERNEL_TRACE 10 /* Kernel tracing of syscalls */
    #define TIF_FREEZE 16 /* is freezing for suspend */

    #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE)
    @@ -81,6 +82,7 @@ register struct thread_info *__current_t
    #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED)
    #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG)
    #define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK)
    +#define _TIF_KERNEL_TRACE (1<<TIF_KERNEL_TRACE)
    #define _TIF_FREEZE (1<<TIF_FREEZE)

    /* Work to do on interrupt/exception return. */
    @@ -88,7 +90,7 @@ register struct thread_info *__current_t

    /* Work to do on any return to userspace. */
    #define _TIF_ALLWORK_MASK (_TIF_WORK_MASK \
    - | _TIF_SYSCALL_TRACE)
    + | _TIF_SYSCALL_TRACE | _TIF_KERNEL_TRACE)

    #define ALPHA_UAC_SHIFT 6
    #define ALPHA_UAC_MASK (1 << TIF_UAC_NOPRINT | 1 << TIF_UAC_NOFIX | \
    --
    Mathieu Desnoyers
    OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68


    \
     
     \ /
      Last update: 2009-03-15 20:35    [W:0.019 / U:30.580 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site