Re: [PATCH v3 10/10] perf: perf interface for uprobes.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Masami Hiramatsu
Date: Thursday, May 6, 2010 - 4:13 pm

Srikar Dronamraju wrote:

Good work! Thank you!


Could you also rebase your patch on the latest tip tree? :)
(and remove die() too)


Hmm, I'm not sure why we have to specify both of PID and exec name.
Is that possible to give a symbol as below? (omit exec name)

# perf probe -p 3329 zfree


Hmm, the event name should be simpler, as like as zfree_3329.
or, we might better make a new event group for each process, as like as
'probe_3329:zfree'



Looks great! :D

[...]

Some comments on the patch.

[...]

Hmm, if user gave --list with -p, what happened?
We need to check a bad combination and warn it.


Again, it must be checked that the combination of -p option and dwarf requirement.
The latest code has perf_probe_event_need_dwarf(), so you can check it easier.

[...]

Well, after rebasing, you'll need to remove die()s from here and
make it returns errors. 

[...]

Isn't it a cleanup ?

[...]

Please close fd in the function which opened it.



Ditto.

[...]

This one changes the symbol.c, so I think you'd better make a
separate patch for this change.

Thank you,

-- 
Masami Hiramatsu
e-mail: mhiramat@redhat.com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v3 0/10] Uprobes v3, Srikar Dronamraju, (Thu May 6, 11:01 am)
[PATCH v3 1/10] X86 instruction analysis: Move Macro W to ..., Srikar Dronamraju, (Thu May 6, 11:01 am)
[PATCH v3 2/10] User Space Breakpoint Assistance Layer, Srikar Dronamraju, (Thu May 6, 11:02 am)
[PATCH v3 3/10] x86 support for User space breakpoint assi ..., Srikar Dronamraju, (Thu May 6, 11:02 am)
[PATCH v3 4/10] Slot allocation for execution out of line ..., Srikar Dronamraju, (Thu May 6, 11:02 am)
[PATCH v3 5/10] Uprobes Implementation, Srikar Dronamraju, (Thu May 6, 11:02 am)
[PATCH v3 6/10] x86 support for Uprobes, Srikar Dronamraju, (Thu May 6, 11:02 am)
[PATCH v3 7/10] samples: Uprobes samples, Srikar Dronamraju, (Thu May 6, 11:03 am)
[PATCH v3 8/10] Uprobes documentation., Srikar Dronamraju, (Thu May 6, 11:03 am)
[PATCH v3 9/10] trace: uprobes trace_event interface, Srikar Dronamraju, (Thu May 6, 11:03 am)
[PATCH v3 10/10] perf: perf interface for uprobes., Srikar Dronamraju, (Thu May 6, 11:03 am)
Re: [PATCH v3 10/10] perf: perf interface for uprobes., Masami Hiramatsu, (Thu May 6, 4:13 pm)
Re: [PATCH v3 10/10] perf: perf interface for uprobes., Srikar Dronamraju, (Thu May 6, 7:24 pm)
Re: [PATCH v3 10/10] perf: perf interface for uprobes., Masami Hiramatsu, (Fri May 7, 10:53 am)
Re: [PATCH v3 10/10] perf: perf interface for uprobes., Srikar Dronamraju, (Sun May 9, 4:18 am)
Re: [PATCH v3 0/10] Uprobes v3, Peter Zijlstra, (Tue May 11, 1:59 pm)
Re: [PATCH v3 0/10] Uprobes v3, Srikar Dronamraju, (Wed May 12, 3:25 am)
Re: [PATCH v3 0/10] Uprobes v3, Frederic Weisbecker, (Wed May 12, 3:38 am)
Re: [PATCH v3 0/10] Uprobes v3, Peter Zijlstra, (Wed May 12, 5:13 am)
Re: [PATCH v3 0/10] Uprobes v3, Ananth N Mavinakayan ..., (Wed May 12, 6:27 am)
Re: [PATCH v3 0/10] Uprobes v3, Peter Zijlstra, (Wed May 12, 6:39 am)
Re: [PATCH v3 0/10] Uprobes v3, Srikar Dronamraju, (Wed May 12, 6:39 am)
Re: [PATCH v3 0/10] Uprobes v3, Ananth N Mavinakayan ..., (Wed May 12, 7:04 am)
Re: [PATCH v3 0/10] Uprobes v3, Mathieu Desnoyers, (Wed May 12, 7:46 am)
Re: [PATCH v3 0/10] Uprobes v3, Frederic Weisbecker, (Wed May 12, 7:53 am)
Re: [PATCH v3 0/10] Uprobes v3, H. Peter Anvin, (Wed May 12, 9:55 am)
Re: [PATCH v3 0/10] Uprobes v3, Mathieu Desnoyers, (Wed May 12, 10:59 am)
Re: [PATCH v3 0/10] Uprobes v3, Srikar Dronamraju, (Thu May 13, 5:07 am)