This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
probe kernel.function("schedule") { cache[...] = $prev } probe kernel.function("schedule").return { printf("pid is %d\n", cache[...]->pid) // The dereference happens using the same loc2c // generated function that the entry would have used. }
OR
probe kernel.function("schedule") { cache[...] = $prev->pid } probe kernel.function("schedule").return { printf("pid is %d\n", cache[...]) }
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |