[LTP] [PATCH 1/4] lib: Add tst_kernel_bits()

Cyril Hrubis chrubis@suse.cz
Thu Jan 12 15:45:34 CET 2017


Hi!
> > This function returns 32 or 64 depending on if we are running on 32bit
> > or 64bit kernel. This is detected from uname.machine string which seems
> > to be good enough heuristic and even if that fails we can always add a
> > special cases to the tst_kernel_bits() function.
> 
> ACK, though I keep thinking if there isn't something in /proc
> or /sys we could query and guess kernel bits from that.

Unfortunately parsing the machine from uname was the only way I could
came up with.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list