Some bug fixes to the res sample / script code

From: Andi Kleen
Date: Mon Mar 11 2019 - 23:52:33 EST


Some minor bug fixes to the recently merged res sample / scripting
improvelement in perf report.

-Andi