Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added simple fix to statm.sh

  • Loading branch information...
commit c3797051ea6414ba9644cf0c6a68dc50c9d3274e 1 parent 81ecd9c
yersinia authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 linux/perf/memory/statm.sh
8 linux/perf/memory/statm.sh
... ... @@ -1,12 +1,12 @@
1 1 cat /proc/"$1"/statm | awk '
2 2 BEGIN { PGSZ=4 ; }
3 3 {
4   -TOTAL = $1*$PGSZ;
5   -RSS = $2*$PGSZ;
  4 +TOTAL = $1*PGSZ;
  5 +RSS = $2*PGSZ;
6 6 SHARED = $3*PGSZ;
7 7 ANON = RSS-SHARED;
8   -TEXT = $4*$PGSZ;
9   -LIBS = $5$PGSZ;
  8 +TEXT = $4*PGSZ;
  9 +LIBS = $5*PGSZ;
10 10 DATA = $6*PGSZ;
11 11 }
12 12 END {

0 comments on commit c379705

Please sign in to comment.
Something went wrong with that request. Please try again.