[PATCH] pstree: New applet

Lauri Kasanen curaga at operamail.com
Thu Nov 4 13:53:13 UTC 2010


Hi

Attaching a port of pstree to busybox.

I did take a look at the procps_scan function, but I don't think that's easily usable for pstree.

- Lauri


function                                             old     new   delta
pstree_main                                            -     851    +851
dump_tree                                              -     822    +822
.rodata                                             1418    1671    +253
add_proc                                               -     221    +221
out_char                                               -     160    +160
dump_by_user                                           -     110    +110
new_proc                                               -     102    +102
tree_equal                                             -      82     +82
out_newline                                            -      65     +65
sym                                                    -      48     +48
xstat                                                  -      30     +30
xgetpwnam                                              -      29     +29
out_string                                             -      25     +25
find_proc                                              -      24     +24
xuname2uid                                             -      15     +15
width                                                  -       8      +8
static.stderr@@GLIBC_2                                 -       8      +8
more                                                   -       8      +8
list                                                   -       8      +8
applet_main                                           16      24      +8
applet_names                                           7      14      +7
output_width                                           -       4      +4
dumped                                                 -       4      +4
cur_x                                                  -       4      +4
charlen                                                -       4      +4
capacity                                               -       4      +4
applet_nameofs                                         4       6      +2
last_char                                              -       1      +1
------------------------------------------------------------------------------
(add/remove: 25/0 grow/shrink: 4/0 up/down: 2907/0)          Total: 2907 bytes
   text    data     bss     dec     hex filename
  18124     898     128   19150    4ace busybox_old
  22018     986     168   23172    5a84 busybox_unstripped


-- 
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-pstree-New-applet.patch
Type: application/octet-stream
Size: 10987 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20101104/5fde407b/attachment.obj>


More information about the busybox mailing list