OSDN Git Service

Regenerate generated files.
authorElliott Hughes <enh@google.com>
Tue, 26 Jan 2016 18:49:48 +0000 (10:49 -0800)
committerElliott Hughes <enh@google.com>
Tue, 26 Jan 2016 18:49:48 +0000 (10:49 -0800)
Change-Id: Ib5c0f4288bec7dcdcfb7c7b23128a15b06608772

generated/flags.h
generated/globals.h
generated/help.h
generated/newtoys.h

index b4f594a..5aecaed 100644 (file)
 #undef FOR_iorenice
 #endif
 
-// iotop   >0Aakop*u*d#=3<1n#<1bq
+// iotop   >0AaKOh:k*o*p*u*s#<1=7d#=3<1n#<1bq
 #undef OPTSTR_iotop
 #define OPTSTR_iotop  0 
 #ifdef CLEANUP_iotop
 #undef FLAG_b
 #undef FLAG_n
 #undef FLAG_d
+#undef FLAG_s
 #undef FLAG_u
 #undef FLAG_p
 #undef FLAG_o
 #undef FLAG_k
+#undef FLAG_h
+#undef FLAG_O
+#undef FLAG_K
 #undef FLAG_a
 #undef FLAG_A
 #endif
 #undef FLAG_v
 #endif
 
-// top >0mp*u*d#=3<1n#<1bq >0mp*u*d#=3<1n#<1bq
+// top >0mh:k*o*p*u*s#<1=9d#=3<1n#<1bq >0mh:k*o*p*u*s#<1=9d#=3<1n#<1bq
 #undef OPTSTR_top
-#define OPTSTR_top ">0mp*u*d#=3<1n#<1bq"
+#define OPTSTR_top ">0mh:k*o*p*u*s#<1=9d#=3<1n#<1bq"
 #ifdef CLEANUP_top
 #undef CLEANUP_top
 #undef FOR_top
 #undef FLAG_b
 #undef FLAG_n
 #undef FLAG_d
+#undef FLAG_s
 #undef FLAG_u
 #undef FLAG_p
+#undef FLAG_o
+#undef FLAG_k
+#undef FLAG_h
 #undef FLAG_m
 #endif
 
 #define FLAG_b (FORCED_FLAG<<1)
 #define FLAG_n (FORCED_FLAG<<2)
 #define FLAG_d (FORCED_FLAG<<3)
-#define FLAG_u (FORCED_FLAG<<4)
-#define FLAG_p (FORCED_FLAG<<5)
-#define FLAG_o (FORCED_FLAG<<6)
-#define FLAG_k (FORCED_FLAG<<7)
-#define FLAG_a (FORCED_FLAG<<8)
-#define FLAG_A (FORCED_FLAG<<9)
+#define FLAG_s (FORCED_FLAG<<4)
+#define FLAG_u (FORCED_FLAG<<5)
+#define FLAG_p (FORCED_FLAG<<6)
+#define FLAG_o (FORCED_FLAG<<7)
+#define FLAG_k (FORCED_FLAG<<8)
+#define FLAG_h (FORCED_FLAG<<9)
+#define FLAG_O (FORCED_FLAG<<10)
+#define FLAG_K (FORCED_FLAG<<11)
+#define FLAG_a (FORCED_FLAG<<12)
+#define FLAG_A (FORCED_FLAG<<13)
 #endif
 
 #ifdef FOR_ip
 #define FLAG_b (1<<1)
 #define FLAG_n (1<<2)
 #define FLAG_d (1<<3)
-#define FLAG_u (1<<4)
-#define FLAG_p (1<<5)
-#define FLAG_m (1<<6)
+#define FLAG_s (1<<4)
+#define FLAG_u (1<<5)
+#define FLAG_p (1<<6)
+#define FLAG_o (1<<7)
+#define FLAG_k (1<<8)
+#define FLAG_h (1<<9)
+#define FLAG_m (1<<10)
 #endif
 
 #ifdef FOR_touch
index fb6e82a..6ae1dd3 100644 (file)
@@ -1131,8 +1131,12 @@ struct ps_data {
     struct {
       long n;
       long d;
+      long s;
       struct arg_list *u;
       struct arg_list *p;
+      struct arg_list *o;
+      struct arg_list *k;
+      char *h;
     } top;
     struct{
       char *L;
@@ -1156,7 +1160,7 @@ struct ps_data {
   unsigned width, height;
   dev_t tty;
   void *fields, *kfields;
-  long long ticks, bits, ioread, iowrite, aioread, aiowrite;
+  long long ticks, bits;
   size_t header_len;
   int kcount, forcek, sortpos;
   int (*match_process)(long long *slot);
index 13972be..a4f4c8c 100644 (file)
 
 #define help_pgrep "usage: pgrep [-cL] [-d DELIM] [-L SIGNAL] [PATTERN]\n\nSearch for process(es). PATTERN is an extended regular expression checked\nagainst command names.\n\n-c     Show only count of matches\n-d  Use DELIM instead of newline\n-L        Send SIGNAL instead of printing name\n-l        Show command name\n\n"
 
-#define help_top_common "usage: COMMON [-bq] [-n NUMBER] [-d SECONDS] [-p PID,] [-u USER,]\n-b Batch mode (no tty)\n-d Delay SECONDS between each cycle (default 3)\n-n        Exit after NUMBER iterations\n-p        Show these PIDs\n-u     Show these USERs\n-q    Quiet (no header lines)\n\n"
+#define help_top_common "usage: COMMON [-bq] [-n NUMBER] [-d SECONDS] [-p PID,] [-u USER,] [-s SORT]\n\n-b     Batch mode (no tty)\n-d Delay SECONDS between each cycle (default 3)\n-n        Exit after NUMBER iterations\n-p        Show these PIDs\n-u     Show these USERs\n-q    Quiet (no header lines)\n\nCursor LEFT/RIGHT to change sort, UP/DOWN move list, space to force\nupdate, R to reverse sort, Q to exit.\n\n"
 
-#define help_iotop "usage: iotop [-Aako]\n\nRank processes by I/O.\n\n-A       All I/O, not just disk\n-a      Accumulated I/O (not percentage)\n-k    Kilobytes\n-o   Only show processes doing I/O\n\nCursor left/right to change sort, space to update, Q to exit.\n\n"
+#define help_iotop "usage: iotop [-AaKO]\n\nRank processes by I/O.\n\n-A       All I/O, not just disk\n-a      Accumulated I/O (not percentage)\n-K    Kilobytes\n-k   Fallback sort FIELDS (default -[D]IO,-ETIME,-PID)\n-O   Only show processes doing I/O\n-o       Show FIELDS (default PID,PR,USER,[D]READ,[D]WRITE,SWAP,[D]IO,COMM)\n-s  Sort by field number (0-X, default 6)\n\n"
 
-#define help_top "usage: top [-m] [ -d seconds ] [ -n iterations ]\n\nProvide a view of process activity in real time.\nKeys\n   N/M/P/T show CPU usage, sort by pid/mem/cpu/time\n   S       show memory\n   R       reverse sort\n   H       toggle threads\n   C,1     toggle SMP\n   Q,^C    exit\n\nOptions\n   -n Iterations before exiting\n   -d Delay between updates\n   -m Same as 's' key\n\n"
+#define help_top "usage: top [-m] [ -d seconds ] [ -n iterations ]\n\nShow process activity in real time.\n\n-h        Header (default Tasks: %PID, %S=R running, %S=S sleeping, %S\n-k        Fallback sort FIELDS (default -S,-%CPU,-ETIME,-PID)\n-o Show FIELDS (def PID,USER,PR,NI,VIRT,RES,SHR,S,%CPU,%MEM,TIME+,CMDLINE)\n-s     Sort by field number (1-X, default 9)\n\nDefault header is:\nTasks: %PID, %S=R= running, %S=S= sleeping, %S=T= stopped, %S=Z= zombie\\n\nMem: %10KMEM total, %10KMUSED used, %10KMFREE free, %10KBUF buffers\nSwap: %9KSWAP total, %10KSWUSED used, %10KSWFREE free, %10K\n\n   H       toggle threads\n   C,1     toggle SMP\n\n"
 
 #define help_ps "usage: ps [-AadeflnwZ] [-gG GROUP,] [-k FIELD,] [-o FIELD,] [-p PID,] [-t TTY,] [-uU USER,]\n\nList processes.\n\nWhich processes to show (selections may be comma separated lists):\n\n-A    All processes\n-a       Processes with terminals that aren't session leaders\n-d        All processes that aren't session leaders\n-e   Same as -A\n-g  Belonging to GROUPs\n-G Belonging to real GROUPs (before sgid)\n-p      PIDs (--pid)\n-P        Parent PIDs (--ppid)\n-s        In session IDs\n-t      Attached to selected TTYs\n-u   Owned by USERs\n-U      Owned by real USERs (before suid)\n\nOutput modifiers:\n\n-k    Sort FIELDs in +increasing or -decreasting order (--sort)\n-n   Show numeric USER and GROUP\n-w Wide output (don't truncate at terminal width)\n\nWhich FIELDs to show. (Default = -o PID,TTY,TIME,CMD)\n\n-f   Full listing (-o USER:8=UID,PID,PPID,C,STIME,TTY,TIME,CMD)\n-l  Long listing (-o F,S,UID,PID,PPID,C,PRI,NI,ADDR,SZ,WCHAN,TTY,TIME,CMD)\n-o      Output the listed FIELDs, each with optional :size and/or =title\n-Z    Include LABEL\n\nAvailable -o FIELDs:\n\n  ADDR  Instruction pointer               ARGS    Command line (argv[] -path)\n  CMD   COMM without -f, ARGS with -f     CMDLINE Command line (argv[])\n  COMM  Original command name             COMMAND Original command path\n  CPU   Which processor running on        ETIME   Elapsed time since PID start\n  F     Flags (1=FORKNOEXEC 4=SUPERPRIV)  GID     Group id\n  GROUP Group name                        LABEL   Security label\n  MAJFL Major page faults                 MINFL   Minor page faults\n  NAME  Command name (argv[0])            NI      Niceness (lower is faster)\n  PCPU  Percentage of CPU time used       PGID    Process Group ID\n  PID   Process ID                        PPID    Parent Process ID\n  PRI   Priority (higher is faster)       PSR     Processor last executed on\n  RGID  Real (before sgid) group ID       RGROUP  Real (before sgid) group name\n  RSS   Resident Set Size (pages in use)  RTPRIO  Realtime priority\n  RUID  Real (before suid) user ID        RUSER   Real (before suid) user name\n  S     Process state:\n        R (running) S (sleeping) D (device I/O) T (stopped)  t (traced)\n        Z (zombie)  X (deader)   x (dead)       K (wakekill) W (waking)\n  SCHED Scheduling policy (0=other, 1=fifo, 2=rr, 3=batch, 4=iso, 5=idle)\n  STAT  Process state (S) plus:\n        < high priority          N low priority L locked memory\n        s session leader         + foreground   l multithreaded\n  STIME Start time of process in hh:mm (size :19 shows yyyy-mm-dd hh:mm:ss)\n  SZ    Memory Size (4k pages needed to completely swap out process)\n  TIME  CPU time consumed                 TTY     Controlling terminal\n  UID   User id                           USER    User name\n  VSZ   Virtual memory size (1k units)    %VSZ    VSZ as % of physical memory\n  WCHAN Waiting in kernel for\n\n"
 
index 9643b55..f39b7b2 100644 (file)
@@ -102,7 +102,7 @@ USE_INSMOD(NEWTOY(insmod, "<1", TOYFLAG_SBIN|TOYFLAG_NEEDROOT))
 USE_INSTALL(NEWTOY(install, "<1cdDpsvm:o:g:", TOYFLAG_USR|TOYFLAG_BIN))
 USE_IONICE(NEWTOY(ionice, "^tc#<0>3=2n#<0>7=5p#", TOYFLAG_USR|TOYFLAG_BIN))
 USE_IORENICE(NEWTOY(iorenice, "?<1>3", TOYFLAG_USR|TOYFLAG_BIN))
-USE_IOTOP(NEWTOY(iotop, ">0Aako"  "p*u*d#=3<1n#<1bq", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_STAYROOT|TOYFLAG_LOCALE))
+USE_IOTOP(NEWTOY(iotop, ">0AaKO" "h:k*o*p*u*s#<1=7d#=3<1n#<1bq", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_STAYROOT|TOYFLAG_LOCALE))
 USE_IP(NEWTOY(ip, NULL, TOYFLAG_SBIN))
 USE_IP(OLDTOY(ipaddr, ip, TOYFLAG_SBIN))
 USE_IPCRM(NEWTOY(ipcrm, "m*M*s*S*q*Q*", TOYFLAG_USR|TOYFLAG_BIN))
@@ -228,7 +228,7 @@ USE_TFTP(NEWTOY(tftp, "<1b#<8>65464r:l:g|p|[!gp]", TOYFLAG_USR|TOYFLAG_BIN))
 USE_TFTPD(NEWTOY(tftpd, "rcu:l", TOYFLAG_BIN))
 USE_TIME(NEWTOY(time, "<1^p", TOYFLAG_USR|TOYFLAG_BIN))
 USE_TIMEOUT(NEWTOY(timeout, "<2^vk:s: ", TOYFLAG_BIN))
-USE_TOP(NEWTOY(top, ">0m" "p*u*d#=3<1n#<1bq", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_STAYROOT|TOYFLAG_LOCALE))
+USE_TOP(NEWTOY(top, ">0m" "h:k*o*p*u*s#<1=9d#=3<1n#<1bq", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_LOCALE))
 USE_TOUCH(NEWTOY(touch, "acd:mr:t:h[!dtr]", TOYFLAG_BIN))
 USE_SH(OLDTOY(toysh, sh, TOYFLAG_BIN))
 USE_TR(NEWTOY(tr, "^>2<1Ccsd[+cC]", TOYFLAG_USR|TOYFLAG_BIN))