goinsane
2010-10-26 13:32:26 UTC
Hi,
I'd like to know if D enables to save and recall values of the same thread in a way like self->... does.
Let's say a thread fires syscall::open:entry two times and gets 2 filedescriptors. How could I save those in syscall::open:return for later reuse?
The use of just 1 variable (e.g.self->fd) only would overwrite the value at the 2nd call. Maybe an associative array would tend to a solution, like self->fd[port] = ... ?
And how could I evaluate them in a predicate of another probe?
thank you,
goinsane
I'd like to know if D enables to save and recall values of the same thread in a way like self->... does.
Let's say a thread fires syscall::open:entry two times and gets 2 filedescriptors. How could I save those in syscall::open:return for later reuse?
The use of just 1 variable (e.g.self->fd) only would overwrite the value at the 2nd call. Maybe an associative array would tend to a solution, like self->fd[port] = ... ?
And how could I evaluate them in a predicate of another probe?
thank you,
goinsane
--
This message posted from opensolaris.org
This message posted from opensolaris.org