Displaying 2 results from an estimated 2 matches for "taoji".
Did you mean:
taojie
2007 Sep 05
4
a piece of code in dtrace pseudo device
Dear all:
In dtrace.c, function dtrace_probe_create(), there''re a piece of code:
id = (dtrace_id_t)(uintptr_t)vmem_alloc(dtrace_arena, 1,
VM_BESTFIT | VM_SLEEP);
id is uint32_t, and I think id is used as an index to array dtrace_probes[]
but why not just use id = cur_value + 1, cur_value is a global variable to
record the lastest id?
Is this a trick? for what?
Thanks :)
2008 Jan 17
1
Under DTrace USDT and PID, kernel''s microstat accounting doesn''t work in this situation, doesn''t it?
Does anyone has any ideas about this problem?
2008/1/15, ?? TaoJie <eulertao at gmail.com>:
>
> Hi all:
>
> I''m working on revealing system performance now.
> My testing program is an infinite loop. Inside the loop, it will do some
> mathematical opertaions and call function callee(), then go to the next
> loop.
> I install...