perf tools: Fix sample type size calculation in 32 bits archs