Re: linux-next: add utrace tree

2010-01-24 Thread Chris Moller
On 01/24/10 13:01, Frank Ch. Eigler wrote: ... all add up to a mere nudge away from entirely "evil". If so, I wonder if your sort of grossly bimodal view of ethical virtue is going to foster the right sorts of change in the linux kernel community. Nothing like a good religious debate to l

Re: [PATCH] Embed struct utrace in task_struct - V2

2009-03-02 Thread Chris Moller
Roland, Is this going to make into F11? Or is it too early to tell that yet? Roland McGrath wrote: > Hi, Ananth. Sorry everything has slid so long (again). > (I have far too many hats and the past month not so many brains!) > > Here is my immediate agenda for utrace hacking: >

Re: user-space breakpoint support

2008-11-18 Thread Chris Moller
Jim Keniston wrote: > >> >> Any chance there's some actual working ubp code I could tinker with? >> > > There is no implementation of ubp yet. We could probably hack together > an x86 implementation from x86 uprobes in a few days. > > But we'd need a client to test it. One approach would b

Froggy status 2008-11-18

2008-11-18 Thread Chris Moller
nto archer. Backburnered: * More work on attach_tree(). * Add stuff to limit user control of processes * Look at incorporating ubp (breakpoints) into froggy. -- Chris Moller I know that you believe you understand what you think I said, but I'm not sure you realize that what y

Re: user-space breakpoint support

2008-11-12 Thread Chris Moller
s: > > 1. Provide an API that enables different clients to place probes at > the same virtual address in the same process. (But what other > shared-among-clients resources would need to be managed? SSOL slots, > at least.) > > Issues: > --- > - SSOL vma wants to be al

Froggy status 2008-11-12

2008-11-12 Thread Chris Moller
uld change anything about them. And it would probably be a good idea if even root couldn't screw with init. * Maybe start looking into incorporating breakpoints into froggy. -- Chris Moller I know that you believe you understand what you think I said, but I'm not sure you r

Yet another froggy update

2008-11-07 Thread Chris Moller
various places, and maybe an index, but it gets the point across. -- Chris Moller I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant. -- Robert McCloskey signature.asc Description: PGP signature

Froggy status 2008-11-05

2008-11-05 Thread Chris Moller
eek(s): * Add more documentation. * Add syscall entry filtering. * Add signal reporting and filtering. * Add an attach_tree capability. * Add more testcase/demos. -- Chris Moller I know that you believe you understand what you think I said, but I'm not sure you realize

Re: abt froggy

2008-10-31 Thread Chris Moller
talks of froggy being a > sandbox for utrace. > (I haven't read the documents that were updated today. Sorry if its > covered in those docs.) > I'll be doing a lot of documentation work over the next few days--no reason I can't include a tentative roadmap. >

Re: abt froggy

2008-10-30 Thread Chris Moller
> which never gets used. Similarly for unsafe_exec and tracer_task. > > Can you explain why you would want to attach with > UTRACE_ATTACH_EXCLUSIVE always? So even if I want to trace the same > program twice from froggy then I shouldn't be able to do it? > > > --

Re: abt froggy

2008-10-30 Thread Chris Moller
m froggy then I shouldn't be able to do it? > To be honest, I had no good reason for using UTRACE_ATTACH_EXCLUSIVE and can certainly experiment with removing it. > > -- > Thanks and Regards > Srikar > Chris -- Chris Moller I know that you believe you understand wha

Froggy status 2008-10-23

2008-10-23 Thread Chris Moller
fork and die.) * More testcase/demo tinkering. -- Chris Moller I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant. -- Robert McCloskey signature.asc Description: OpenPGP digital signature

Re: Froggy status 2008-10-08

2008-10-13 Thread Chris Moller
Petr Tesarik wrote: > > > All sounds very nice, Chris. But I'm having trouble finding the sources. > Could you give me a pointer, please? > Sorry--you can get the source with cvs -d :ext:sources.redhat.com:/cvs/systemtap co froggy cm > Petr Tesarik > > --

Froggy status 2008-10-08

2008-10-08 Thread Chris Moller
ow yet if it uses the same underlying mechanism as poll.) This week: * Add documentation. * Add fork/eexec/attach support. * Add syscall entry filtering. * Add signal reporting and filtering. * Hack otherwise as necessary. -- Chris Moller I know that you b

froggy status 2008-09-09

2008-09-09 Thread Chris Moller
ing any action--quiescing, tinkering with signals, etc.--that would actually affect the processes. Comments welcome. -- Chris Moller I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not

Re: tasklist_lock question

2008-09-03 Thread Chris Moller
are considering holding a task_struct pointer for > something, let's discuss each on a case by case basis. > Much appreciated, cm > > Thanks, > Roland > > -- Chris Moller I know that you believe you understand what you think I said, but I'm not sure

Re: tasklist_lock question

2008-09-03 Thread Chris Moller
er circumstances I've used in the past, like accessing user mem via get_user_pages(), where I needed access to the task struct. Even if I don't need task struct any more for utrace, I'm kinda trying to plan ahead a bit. Or are pid_task() and get_pid_task() the new/modern way of doing

tasklist_lock question

2008-09-03 Thread Chris Moller
but tasklist_lock is showing up as undefined in module build stage 2 and "Unknown symbol in module" in insmod. am i balling something up? or can i go on using rcu_read_(un)?lock? -- Chris Moller I know that you believe you understand what you think I said, but I'm not sure y

tasklist_lock question--mostly for roland

2008-09-03 Thread Chris Moller
something up? or can i go on using rcu_read_(un)?lock? -- Chris Moller I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant. -- Robert McCloskey signature.asc Description: OpenPGP digital signature

Re: syscall -1?

2008-08-14 Thread Chris Moller
real code, you should be using syscall_get_nr (asm/syscall.h), Hmm-- no such thing, apparently, as syscall_get_nr in 2.6.25.6. Is it supposed to trickle out into the world sometime soon? Thanks, Chris > > > Thanks, > Roland > -- Chris Moller I know that you believe you

syscall -1?

2008-08-14 Thread Chris Moller
-test code that decodes syscalls, the same hunk of code that's dumping the "[ ] got syscall entry..." stuff. Anyone have a clue what that's all about? It's real--if I stick if (-1 == regs->orig_ax) printk (KERN_ALERT "got a syscall -1\n"); into the

Froggy update

2008-08-13 Thread Chris Moller
e fork()/exec() process needed by -E, which also requires synchronisation with the client in various places.) -- Chris Moller I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant. -- Robert McCloskey signature.asc Description: OpenPGP digital signature

Froggy update.

2008-07-29 Thread Chris Moller
ached running (i.e., it's not quiesced), all syscall entries and exits are reported. and that's it. More to come. -- Chris Moller I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant.

Re: Froggy status

2008-07-29 Thread Chris Moller
Chris Moller wrote: BTW, until further notice--tomorrow morning, probably, don't use a froggy of any later that 2006-07-28 11:20. Somehow a kernel-crasher snuck in which I'll debug in the morning. Fixed and committed. -- Chris Moller I know that you believe you understan

Re: Froggy status

2008-07-28 Thread Chris Moller
as long as there are any open fds on the froggy peeudo-file /sys/kernel/debug/froggy. BTW, until further notice--tomorrow morning, probably, don't use a froggy of any later that 2006-07-28 11:20. Somehow a kernel-crasher snuck in which I'll debug in the morning. -- Chris Moller

Re: Froggy status

2008-07-28 Thread Chris Moller
e, what happens if there is a error in a client and it aborts? What happens if someone does a "rmmod" on the module while clients are still running? Both circumstances on the to-do list. -- Chris Moller I know that you believe you understand what you think I said, but I'm not s

Froggy status

2008-07-28 Thread Chris Moller
ng synchronised with the queue buffer, and gracefully respond to the deaths of child processes by detaching and freeing resources, and asynchronously reporting the death back to the app. Feedback, as usual, welcome. -- Chris Moller I know that you believe you understand what

Re: Rearchitecting froggy-test to a test-suite

2008-07-15 Thread Chris Moller
e. So we'd have a quiesce only example; that in turn would form part of the quiesce test-suite. It allows newbie developers like me to quickly ascertain code snippets in a isolated, concrete fashion. It would also be neat to track regressions across development phases, even this early on.

Re: Kernel oops with froggy test

2008-07-14 Thread Chris Moller
Phil Muldoon wrote: Chris Moller wrote: Try it now (from the sources.r.c repo): I think what was happening was that the response thread was terminating before the report_quiesce hit, thereby invalidating the pointer to the buffer. I rewrote all that code. Great thanks, can attach

Re: Kernel oops with froggy test

2008-07-13 Thread Chris Moller
r, be back latr tonight! [EMAIL PROTECTED] froggy]$ ./froggy-test -t760 sending syscal vecs sending signal vec attaching tasks attach status = resp buf = "quiescing " -- Chris Moller I know that you believe you understand what you think I said, but I'm not sure you r

First hack at utracer-replacement, all ready to be ripped to shreds!

2008-07-11 Thread Chris Moller
g ./froggy-test -t where is the bash task.you'll get some stuff, but the important part is where it says "resp buf = "quiescing" That's a round trip from attach->quiesce->asynchronous response. -- Chris Moller I know that you believe you understan

Re: ntrace: interface ideas

2008-07-10 Thread Chris Moller
Forgot to mention, BTW, there's a mini-app in utracer/*.[ch] that shows the utracer API in use in a fake GTK-based debugger. Phil Muldoon wrote: Chris Moller wrote: Phil Muldoon wrote: Thanks for the description Chris. From an ntrace client implementation "point of view&quo

Re: ntrace: interface ideas

2008-07-10 Thread Chris Moller
Phil Muldoon wrote: Chris Moller wrote: Phil Muldoon wrote: Thanks for the description Chris. From an ntrace client implementation "point of view", non-ordered replies to asynchronous requests present an ordering conundrum in the client - especially as it scales to many many

Re: ntrace: interface ideas

2008-07-10 Thread Chris Moller
ould be synchronous. I don't want to get tied up here too much, as both you and Roland mention this is all fluid. But for the sake of understanding and documentation, can you give me a use-case where a synchronous request would be needed/used, and also an asynchronous one? Regards Phil

Re: ntrace: interface ideas

2008-07-10 Thread Chris Moller
Phil Muldoon wrote: Chris Moller wrote: No guarantees, of course--the next-generation stuff may do things differently--but even as I type this, I'm hacking together a boilerplate framework that does exactly as described above. Missed this in the last question, so apologies for the mul

Re: ntrace: interface ideas

2008-07-09 Thread Chris Moller
ther a boilerplate framework that does exactly as described above. Feedback welcome. cm Regards Phil -- Chris Moller I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant. -- Robert McCloskey signature.asc Description: OpenPGP digital signature

Re: The demise of utracer.

2008-07-01 Thread Chris Moller
K.Prasad wrote: On Tue, Jul 01, 2008 at 03:28:04PM -0400, Chris Moller wrote: K.Prasad wrote: Hi All, Sorry if I have missed out something I need to know before I respond to this email. But the "trace" infrastructure (lib/trace.c) already provides such a facility

Re: The demise of utracer.

2008-07-01 Thread Chris Moller
re already familiar to the systemtap code. Thanks, K.Prasad P.S.: "trace" is currently in -mm tree. Thought it might be interesting to check this out--the patched 2.6.26-rc5 kernel built fine but panicked when I tried to boot it. So much for the easy way... -- Chris Moller

Re: The demise of utracer.

2008-07-01 Thread Chris Moller
longer than I have--but if you have cool notions about which way to go, you kinda need to let the rest of us know what they are. (And, reading ahead, yeah, I know, that's what the rest of this note is...) I'll commence to hackin'. cm -- Chris Moller I know that you believe yo

Re: The demise of utracer.

2008-06-30 Thread Chris Moller
Frank Ch. Eigler wrote: Chris Moller <[EMAIL PROTECTED]> writes: [...] and than some people have expressed a preference for: The first is that it's clumsy. When the utracer module loads, it creates a /proc pseudo-directory /proc/utrace and then a pseudo-file /proc/utr

Re: The demise of utracer.

2008-06-30 Thread Chris Moller
he interface/fancy-debugger-module picture. In the next day or two, I'll start a new thread here about each facet of the problem as I see it and what I've had in mind; for lack of a better name, under the heading "ntrace". Thanks, Roland -- Chris Moller I know that you b

Re: The demise of utracer.

2008-06-25 Thread Chris Moller
arting over and accumulating new cruft. -- Chris Moller I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant. -- Robert McCloskey signature.asc Description: OpenPGP digital signature

Re: The demise of utracer.

2008-06-25 Thread Chris Moller
Daniel Jacobowitz wrote: On Wed, Jun 25, 2008 at 12:30:03PM -0400, Chris Moller wrote: Extending ptrace seems like a sad idea. If Linux is going to grow a new userspace-accessible debug interface, can't it go in /proc or something? Actually, that's exactly what ut

Re: The demise of utracer.

2008-06-25 Thread Chris Moller
Phil Muldoon wrote: Chris Moller wrote: Due to a complete lack of interest, I'm shelving utracer. May it collect dust in peace. I was (and still am) interested in it from a direct api point of view. As a an end-tool not so much. Systemtap is cool, and, based on tinkering with i

Re: The demise of utracer.

2008-06-25 Thread Chris Moller
Daniel Jacobowitz wrote: On Tue, Jun 24, 2008 at 10:49:56PM -0400, Chris Moller wrote: I've been scratching my head for a bit on some other way to provide user-space access to utrace. Three things occurred to me: 1. A systemtap-like approach. 2. A whole new syscall, SYS_utra

Re: The demise of utracer.

2008-06-25 Thread Chris Moller
Adam Jackson wrote: On Tue, 2008-06-24 at 22:49 -0400, Chris Moller wrote: Comments, up to and including "What the hell are you smoking?" welcome. I'd rather phrase this as "what are we not getting out of ptrace that we really want". Answering that w

The demise of utracer.

2008-06-24 Thread Chris Moller
. All the real hacking is in the external fcn.) At least one upside of this, of course, is that there's no redundancy with ptrace. Comments, up to and including "What the hell are you smoking?" welcome. -- Chris Moller I know that you believe you understand what you think I

utracer CVS

2008-05-28 Thread Chris Moller
directory utracer. 2. Singlestep is badly broken in the sample app (like" ps -el "segv's and other bad stuff after you try a ss on an attached task) and since Roland is about to change the underlying utrace anyway, I haven't bothered to fix it. -- Chris

Re: utrace and thread termination

2007-11-13 Thread Chris Moller
er process to monitor it for a while or until it dies. It > is nice to avoid maintaining the monitored thread under ptrace during > the session. Today, perfmon uses its own notification mechanism via > a message queue to forward the information to use monitoring tool. > I'd rather use a st

A kernel-module interface to utrace.

2007-07-31 Thread Chris Moller
he interface lib are arch-independent (at least, any arch-dependent bits are taken care of by the kernel config of the kernel headers). Have fun; comments welcome, Chris Moller. -- Chris Moller Java: the blunt scissors of programming languages. -- Dave Thomas signature.asc Description: OpenPGP digital signature