diff options
| author | Evan Millar <emillar@google.com> | 2009-10-29 12:41:39 -0700 |
|---|---|---|
| committer | Evan Millar <emillar@google.com> | 2009-10-29 12:53:46 -0700 |
| commit | 26a2d829b37d2658e5e037f1f8ce968bbd9f2164 (patch) | |
| tree | 42ef6fc1b190546a644373cad68de6ac404174f9 /cmds/dumpstate/dumpstate.h | |
| parent | fb872d1af3c775114ac7d241eb1924a9aafbb9df (diff) | |
| download | frameworks_base-26a2d829b37d2658e5e037f1f8ce968bbd9f2164.zip frameworks_base-26a2d829b37d2658e5e037f1f8ce968bbd9f2164.tar.gz frameworks_base-26a2d829b37d2658e5e037f1f8ce968bbd9f2164.tar.bz2 | |
Add -P flag to ps in dumpstate
Diffstat (limited to 'cmds/dumpstate/dumpstate.h')
| -rw-r--r-- | cmds/dumpstate/dumpstate.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.h b/cmds/dumpstate/dumpstate.h index 6862e5a..b99b6d7 100644 --- a/cmds/dumpstate/dumpstate.h +++ b/cmds/dumpstate/dumpstate.h @@ -61,6 +61,15 @@ run_command(&c, TIMEOUT); \ } +#define EXEC1(cmd, a1) \ +{ \ + static struct Command c = { \ + "/system/bin/" cmd, \ + { cmd, a1, 0 } \ + }; \ + run_command(&c, TIMEOUT); \ +} + #define EXEC2(cmd, a1, a2) \ { \ static struct Command c = { \ @@ -70,6 +79,15 @@ run_command(&c, TIMEOUT); \ } +#define EXEC3(cmd, a1, a2, a3) \ +{ \ + static struct Command c = { \ + "/system/bin/" cmd, \ + { cmd, a1, a2, a3, 0 } \ + }; \ + run_command(&c, TIMEOUT); \ +} + #define EXEC4(cmd, a1, a2, a3, a4) \ { \ static struct Command c = { \ |
