This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
membership test problem
- From: Mike Mason <mmlnx at us dot ibm dot com>
- To: SystemTAP <systemtap at sources dot redhat dot com>
- Date: Thu, 26 Oct 2006 13:54:00 -0700
- Subject: membership test problem
What should the following code print? I expected TRUE, but got FALSE. Looks like if the array element value is 0, the membership test fails. Is this correct?
p = pid()
t = tid()
prot_tx[p,t] = 0
if ([p,t] in prot_tx) {
print("TRUE\n")
} else {
print("FALSE\n")
}
- Mike