• Markus Metzger's avatar
    x86, bts: base in-kernel ds interface on handles · ca0002a1
    Markus Metzger authored
    Impact: generalize the DS code to shared buffers
    
    Change the in-kernel ds.h interface to identify the tracer via a
    handle returned on ds_request_~().
    
    Tracers used to be identified via their task_struct.
    
    The changes are required to allow DS to be shared between different
    tasks, which is needed for perfmon2 and for ftrace.
    
    For ptrace, the handle is stored in the traced task's task_struct.
    This should probably go into a (arch-specific) ptrace context some
    time.
    Signed-off-by: default avatarMarkus Metzger <markus.t.metzger@intel.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    ca0002a1
ds.c 19.4 KB