perf probe: Check if *ptr2 is zero and not ptr2