aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMel Gorman <mel@csn.ul.ie>2010-10-11 18:08:34 +0100
committerEric B Munson <emunson@mgebm.net>2010-10-11 14:51:09 -0700
commit2a62849b20184a271b2d925d114c42062461a28e (patch)
treee49703b7c1ca8723b0e1b534db7f792eea2013db
parent0cb2211ec932ffc6ac4f1272a13fd034bb528636 (diff)
downloadlibhugetlbfs-2a62849b20184a271b2d925d114c42062461a28e.tar.gz
tlbmiss_cost.sh: Suppress errors from opreport
If opreport throws up an error, it shows up in the tlbmiss_cost.sh output. Stop that. Signed-off-by: Mel Gorman <mel@csn.ul.ie> Acked-by: Eric B Munson <emunson@mgebm.net> Signed-off-by: Eric B Munson <emunson@mgebm.net>
-rw-r--r--TLBC/OpCollect.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/TLBC/OpCollect.pm b/TLBC/OpCollect.pm
index 1dd0b3e..6ec477f 100644
--- a/TLBC/OpCollect.pm
+++ b/TLBC/OpCollect.pm
@@ -172,7 +172,7 @@ sub get_current_eventcount()
sub read_eventcount()
{
system("opcontrol --dump > /dev/null 2>&1");
- $report = `opreport -x`;
+ $report = `opreport -x 2> /dev/null`;
}
sub shutdown()