Re: [PATCH 1/1] system call notification with self_ptrace

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pierre Morel
Date: Friday, September 12, 2008 - 5:19 am

Hello Oleg,

You are right, the functionality can be implemented with the system call.
But it means we have the overhead of a system call just to clear two bits,
the TIF_SYSCALL_TRACE and the PTS_SELF.

On the other hand we have an overhead of one single "if" inside
the handle_signal() function.

We can do the same with fork and ptrace, yes, but with a very big 
overhead on each system call and this is why this patch is so usefull: 
because with this patch you sit inside the thread when analysing it and 
have a direct access to all data without the need of IPC, ptrace or any 
task switch.

I will provide a test program and plan to release a tracing tool based 
on it.
I think I can reduce the task struct modification by using just a bit 
like you suggest if nobody seen any problem with this.

best regards,

Pierre

Oleg Nesterov wrote:


-- 
=============
Pierre Morel
RTOS and Embedded Linux

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/1] system call notification with self_ptrace, Pierre Morel, (Mon Sep 8, 5:02 am)
Re: [PATCH 1/1] system call notification with self_ptrace, Oleg Nesterov, (Wed Sep 10, 9:20 am)
Re: [PATCH 1/1] system call notification with self_ptrace, Pierre Morel, (Fri Sep 12, 5:19 am)
Re: [PATCH 1/1] system call notification with self_ptrace, Oleg Nesterov, (Fri Sep 12, 7:32 am)