summaryrefslogtreecommitdiff
path: root/data/top
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2009-08-15 08:55:49 +0000
committerJay Freeman <saurik@saurik.com>2009-08-15 08:55:49 +0000
commit0fc6e098c25bab23d613247bfdec4bbb9f3da824 (patch)
tree68e44aad301510b43f60d3bf1d66c02fd29b1c89 /data/top
parent941b171aa5289e307200390a7810ef79f7145c00 (diff)
Various things I forgot to commit.
git-svn-id: http://svn.telesphoreo.org/trunk@670 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/top')
-rw-r--r--data/top/escape.diff12
-rw-r--r--data/top/rprvt.diff49
-rw-r--r--data/top/stability.diff13
3 files changed, 74 insertions, 0 deletions
diff --git a/data/top/escape.diff b/data/top/escape.diff
new file mode 100644
index 000000000..ce794392c
--- /dev/null
+++ b/data/top/escape.diff
@@ -0,0 +1,12 @@
+diff -ru top-39/top.h top-39+iPhone/top.h
+--- top-39/top.h 2007-05-21 20:43:56.000000000 +0000
++++ top-39+iPhone/top.h 2009-05-12 10:34:55.000000000 +0000
+@@ -174,7 +174,7 @@
+ #define FORMAT_TIME_HHMMSS 'w'
+
+ #define VALID_FORMATS "abcdefghijklmnopqrstuvw"
+-#define FORMAT_ESCAPE '\'
++#define FORMAT_ESCAPE '\\'
+ #define FORMAT_LEFT '^'
+ #define FORMAT_RIGHT '$'
+ #define FORMAT_DELTA '-'
diff --git a/data/top/rprvt.diff b/data/top/rprvt.diff
new file mode 100644
index 000000000..c78db0560
--- /dev/null
+++ b/data/top/rprvt.diff
@@ -0,0 +1,49 @@
+diff -ru top-39/top.h top-39+iPhone/top.h
+--- top-39/top.h 2007-05-21 20:43:56.000000000 +0000
++++ top-39+iPhone/top.h 2009-05-12 00:51:45.000000000 +0000
+@@ -180,10 +180,10 @@
+ #define FORMAT_DELTA '-'
+ #define VALID_ESCAPES "\\^$-"
+
+-#define LEGEND_CN " PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE"
+-#define FORMAT_CN "$aaaa ^bbbbbbbbb $cccc% $wwwwwww $ee $ffff-$ggggg $hhhh- $iiii- $jjjj- $llll-"
+-#define LEGEND_CNW " PID COMMAND %CPU TIME #TH #PRTS(delta) #MREGS RPRVT(delta) RSHRD(delta) RSIZE(delta) VSIZE(delta)"
+-#define FORMAT_CNW "$aaaa ^bbbbbbbbb $cccc% $wwwwwww $ee $ffff------- $ggggg $hhhh------- $iiii------- $jjjj------- $llll-------"
++#define LEGEND_CN " PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE"
++#define FORMAT_CN "$aaaa ^bbbbbbbbb $cccc% $wwwwwww $ee $ffff-$ggggg $hhhhh- $iiii- $jjjj- $llll-"
++#define LEGEND_CNW " PID COMMAND %CPU TIME #TH #PRTS(delta) #MREGS RPRVT(delta) RSHRD(delta) RSIZE(delta) VSIZE(delta)"
++#define FORMAT_CNW "$aaaa ^bbbbbbbbb $cccc% $wwwwwww $ee $ffff------- $ggggg $hhhhh------- $iiii------- $jjjj------- $llll-------"
+ #define LEGEND_CA " PID COMMAND %CPU TIME FAULTS PAGEINS COW_FAULTS MSGS_SENT MSGS_RCVD BSDSYSCALL MACHSYSCALL CSWITCH"
+ #define FORMAT_CA "$aaaa ^bbbbbbbbb $cccc% $wwwwwww ^oooooo ^ppppppp ^qqqqqqqqq ^rrrrrrrr ^ssssssss ^ttttttttt ^uuuuuuuuuu ^vvvvvv"
+ #define LEGEND_CD " PID COMMAND %CPU TIME FAULTS PGINS/COWS MSENT/MRCVD BSD/MACH CSW"
+@@ -191,18 +191,18 @@
+ #define LEGEND_CE LEGEND_CA
+ #define FORMAT_CE FORMAT_CA
+
+-#define LEGEND_XCN " PID UID REG RPRVT RSHRD RSIZE VPRVT VSIZE TH PRT TIME %CPU COMMAND"
+-#define FORMAT_XCN "$aaaa $mmmm $ggg $hhhh- $iiii- $jjjj- $kkkk- $llll-$ee $ff-$dddddd $cccc ^bbbbbbbbbbbbbbb"
+-#define LEGEND_XCNW " PID UID REG RPRVT( delta) RSHRD( delta) RSIZE( delta) VPRVT( delta) VSIZE( delta) TH PRT(delta) TIME %CPU COMMAND"
+-#define FORMAT_XCNW "$aaaa $mmmm $ggg $hhhh-------- $iiii-------- $jjjj-------- $kkkk-------- $llll--------$ee $ff-------$dddddd $cccc ^bbbbbbbbbbbbbbb"
+-#define LEGEND_XTCN " PID USERNAME REG RPRVT RSHRD RSIZE VPRVT VSIZE TH PRT TIME %CPU COMMAND"
+-#define FORMAT_XTCN "$aaaa ^nnnnnnnn $ggg $hhhh- $iiii- $jjjj- $kkkk- $llll-$ee $ff-$dddddd $cccc ^bbbbbbbbbbbbbbb"
+-#define LEGEND_XTCNW " PID USERNAME REG RPRVT( delta) RSHRD( delta) RSIZE( delta) VPRVT( delta) VSIZE( delta) TH PRT(delta) TIME %CPU COMMAND"
+-#define FORMAT_XTCNW "$aaaa ^nnnnnnnn $ggg $hhhh-------- $iiii-------- $jjjj-------- $kkkk-------- $llll--------$ee $ff-------$dddddd $cccc ^bbbbbbbbbbbbbbb"
+-#define LEGEND_XCA " PID UID REG RPRVT RSHRD RSIZE VPRVT VSIZE TH PRT FAULTS PAGEINS COW_FAULTS MSGS_SENT MSGS_RCVD BSYSCALL MSYSCALL CSWITCH TIME %CPU COMMAND"
+-#define FORMAT_XCA "$aaaa $mmmm $ggg $hhhh $iiii $jjjjj $kkkk $llll $ee $ff $ooooooooo $pppppppp $qqqqqqqqq $rrrrrrrr $ssssssss $ttttttt $uuuuuuu $vvvvvv $ddddd$ccccc $bbbbbbbbbbbbbbbb"
+-#define LEGEND_XTCA " PID USERNAME REG RPRVT RSHRD RSIZE VPRVT VSIZE TH PRT FAULTS PAGEINS COW_FAULTS MSGS_SENT MSGS_RCVD BSYSCALL MSYSCALL CSWITCH TIME %CPU COMMAND"
+-#define FORMAT_XTCA "$aaaa ^nnnnnnnn $ggg $hhhh $iiii $jjjjj $kkkk $llll $ee $ff $ooooooooo $ppppppp $qqqqqqqqq $rrrrrrrr $ssssssss $ttttttt $uuuuuuu $vvvvvv $ddddd$ccccc $bbbbbbbbbbbbbbbb"
++#define LEGEND_XCN " PID UID REG RPRVT RSHRD RSIZE VPRVT VSIZE TH PRT TIME %CPU COMMAND"
++#define FORMAT_XCN "$aaaa $mmmm $ggg $hhhhh- $iiii- $jjjj- $kkkk- $llll-$ee $ff-$dddddd $cccc ^bbbbbbbbbbbbbbb"
++#define LEGEND_XCNW " PID UID REG RPRVT( delta) RSHRD( delta) RSIZE( delta) VPRVT( delta) VSIZE( delta) TH PRT(delta) TIME %CPU COMMAND"
++#define FORMAT_XCNW "$aaaa $mmmm $ggg $hhhhh-------- $iiii-------- $jjjj-------- $kkkk-------- $llll--------$ee $ff-------$dddddd $cccc ^bbbbbbbbbbbbbbb"
++#define LEGEND_XTCN " PID USERNAME REG RPRVT RSHRD RSIZE VPRVT VSIZE TH PRT TIME %CPU COMMAND"
++#define FORMAT_XTCN "$aaaa ^nnnnnnnn $ggg $hhhhh- $iiii- $jjjj- $kkkk- $llll-$ee $ff-$dddddd $cccc ^bbbbbbbbbbbbbbb"
++#define LEGEND_XTCNW " PID USERNAME REG RPRVT( delta) RSHRD( delta) RSIZE( delta) VPRVT( delta) VSIZE( delta) TH PRT(delta) TIME %CPU COMMAND"
++#define FORMAT_XTCNW "$aaaa ^nnnnnnnn $ggg $hhhhh-------- $iiii-------- $jjjj-------- $kkkk-------- $llll--------$ee $ff-------$dddddd $cccc ^bbbbbbbbbbbbbbb"
++#define LEGEND_XCA " PID UID REG RPRVT RSHRD RSIZE VPRVT VSIZE TH PRT FAULTS PAGEINS COW_FAULTS MSGS_SENT MSGS_RCVD BSYSCALL MSYSCALL CSWITCH TIME %CPU COMMAND"
++#define FORMAT_XCA "$aaaa $mmmm $ggg $hhhhh $iiii $jjjjj $kkkk $llll $ee $ff $ooooooooo $pppppppp $qqqqqqqqq $rrrrrrrr $ssssssss $ttttttt $uuuuuuu $vvvvvv $ddddd$ccccc $bbbbbbbbbbbbbbbb"
++#define LEGEND_XTCA " PID USERNAME REG RPRVT RSHRD RSIZE VPRVT VSIZE TH PRT FAULTS PAGEINS COW_FAULTS MSGS_SENT MSGS_RCVD BSYSCALL MSYSCALL CSWITCH TIME %CPU COMMAND"
++#define FORMAT_XTCA "$aaaa ^nnnnnnnn $ggg $hhhhh $iiii $jjjjj $kkkk $llll $ee $ff $ooooooooo $ppppppp $qqqqqqqqq $rrrrrrrr $ssssssss $ttttttt $uuuuuuu $vvvvvv $ddddd$ccccc $bbbbbbbbbbbbbbbb"
+ #define LEGEND_XCD LEGEND_XCA
+ #define FORMAT_XCD FORMAT_XCA
+ #define LEGEND_XCE LEGEND_XCA
diff --git a/data/top/stability.diff b/data/top/stability.diff
new file mode 100644
index 000000000..70729a518
--- /dev/null
+++ b/data/top/stability.diff
@@ -0,0 +1,13 @@
+diff -ru top-39/libtop.c top-39+iPhone/libtop.c
+--- top-39/libtop.c 2008-02-04 21:55:01.000000000 +0000
++++ top-39+iPhone/libtop.c 2009-05-13 09:13:40.000000000 +0000
+@@ -1647,6 +1647,9 @@
+ pinfo->psamp.vsize = ti.virtual_size;
+ }
+
++ if (pinfo->psamp.rprvt > 0xc0000000)
++ pinfo->psamp.rprvt = pinfo->psamp.p_rprvt;
++
+ /*
+ * Get CPU usage statistics.
+ */