commit | 22f0600f76d97a4e3ac3f14f89a8e067d61a08f7 | [log] [tgz] |
---|---|---|
author | Michael Sartain <mikesart@fastmail.com> | Thu Nov 09 11:57:56 2017 -0700 |
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | Thu Nov 09 21:16:09 2017 -0500 |
tree | 50970b8da0777921cc28ffd79be0ab0d49f01860 | |
parent | a67d5123c5e8e8ae6340e42215cb064166737ed9 [diff] |
trace-cmd: Fix reading of overrun / commit_overrun cpu stat fields [ commit 658c485a17a1a9ead98023ccb0dc3ddc12911ff0 ] sizeof(overrun_str) includes the nil, so atoi was skipping the lead digit meaning trace-cmd would report: CPU 0: 37984 events lost for "overrun: 137984" Signed-off-by: Michael Sartain <mikesart@fastmail.com> [ Use strlen() instead of (sizeof() - 1) ] Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>