OSDN Git Service

pm-graph: make setVal unbuffered again for python2 and python3
authorTodd Brandt <todd.e.brandt@linux.intel.com>
Wed, 4 Sep 2019 21:04:52 +0000 (14:04 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 4 Sep 2019 21:10:26 +0000 (23:10 +0200)
commit4216148337211be7ad2bfe38a0dffc3ce479c283
tree54ad28512202d135be8db89bec9ab48b714e6ce3
parent1446794a89c13816bd526dcbff4051cac9743db7
pm-graph: make setVal unbuffered again for python2 and python3

sleepgraph:
 - kprobe_events won't set correctly if the data is buffered
 - force sysvals.setVal to be unbuffered and use binary mode
 - tested in both python2 and python3

Link: https://bugzilla.kernel.org/show_bug.cgi?id=204773
Signed-off-by: Todd Brandt <todd.e.brandt@linux.intel.com>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/pm-graph/sleepgraph.py