linux.core: fix memory allocation issue.
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Wed, 14 Dec 2016 22:07:03 +0000 (17:07 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Sat, 17 Dec 2016 12:56:05 +0000 (07:56 -0500)
commite687d13b1aa093c43ac36dd149bc4a584a62bb80
tree90d57f765e7a904651551a2ba35396949007f6be
parentcde512f229b7d2f97fd1c125753df5a0c75f9a88
linux.core: fix memory allocation issue.

The order field in page alloc/free say how many pages are allocated.
It was ignored, which gave false totals.

It is artificially limited to 2^62 page size, as larger would garanty
an overflow.

With this patch, memory overflows can occur much faster, but only on
systems which trace or report over Long.MAX_VALUE memory.

Change-Id: I5c805115cb3aaa5c6bc6146a6dc0db20f11854ef
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/87181
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
analysis/org.eclipse.tracecompass.analysis.os.linux.core.tests/src/org/eclipse/tracecompass/analysis/os/linux/core/tests/kernelmemoryusage/KernelMemoryStateProviderTest.java
analysis/org.eclipse.tracecompass.analysis.os.linux.core.tests/testfiles/KernelMemoryAnalysis_testTrace.xml
analysis/org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/analysis/os/linux/core/kernelmemoryusage/KernelMemoryStateProvider.java
This page took 0.025907 seconds and 5 git commands to generate.