Robert Harris
2010-06-10 22:26:42 UTC
If I have foo(), where
foo() {
return(bar());
}
then should I expect anything unusual about args[1]
in fbt::foo:return? Should I expect args[1] in such
a probe to give me X where
X = foo()
?
I ask after finding something odd about the following
code in mapin():
145 pfnum = hat_getpfnum(as->a_hat, addr);
146 if (pf_is_memory(pfnum)) {
dtrace alleged that the return value of hat_getpfnum()
differed from the argument to pf_is_memory(); recompiling
with cmn_err() showed that the latter was correct. The value
of args[1] in hat_getpfnum:return looked like the second
argument passed in.
Robert
foo() {
return(bar());
}
then should I expect anything unusual about args[1]
in fbt::foo:return? Should I expect args[1] in such
a probe to give me X where
X = foo()
?
I ask after finding something odd about the following
code in mapin():
145 pfnum = hat_getpfnum(as->a_hat, addr);
146 if (pf_is_memory(pfnum)) {
dtrace alleged that the return value of hat_getpfnum()
differed from the argument to pf_is_memory(); recompiling
with cmn_err() showed that the latter was correct. The value
of args[1] in hat_getpfnum:return looked like the second
argument passed in.
Robert