(In reply to Michal Suchanek from comment #11) > I am not sure how to detect running on 32bit, especially in the case that > it's 32bit userspace on 64bit kernel. Some kind of checking of ELF64 eq: readelf -h /usr/bin/pahole | sed -n 's/.*Class: *// p'