Make reserved memory block detection more robust master
authorReto Buerki <reet@codelabs.ch>
Fri, 29 Sep 2017 14:10:49 +0000 (16:10 +0200)
committerReto Buerki <reet@codelabs.ch>
Fri, 29 Sep 2017 15:23:21 +0000 (17:23 +0200)
commitc91048bee099986e6a42d1adf198dc6b78c5a6c4
tree03135fe0c3ae1a20345a82389e8797bbe5469c8f
parentcdb85f98c2f5eaa27e0402951ec76c37a4d7e80d
parent60493f1e80cf7b0c6376ba14e6cf277dbce6b3fc
Make reserved memory block detection more robust

Summary:
Closes T457. Newer Linux kernels (tested with 4.13) changed the casing
of the memory type from 'reserved' to 'Reserved'. Therefore convert to
lowercase before comparison in filterMemoryBlocks function.

Also fix some creator tests and perform minor (pep8) cleanup.

Reviewers: ken

Reviewed By: ken

Maniphest Tasks: T457

Differential Revision: https://dev.codelabs.ch/D647