| Cette page fait partie du site web de Grégoire Barbier, © 1999-2008, tous droits réservés. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Some softwares I am developingHere are some softwares I developed, you can download them (provided you agree with the enclosed license) and give me feedback (by mail to gb at gbarbier dot org). Up to now there are only some very small softwares, but this page will improve. nmbscan
Its homepage is no longer here, hit has moved there: http://nmbscan.gbarbier.org/. bcvConverts number to/from decimal, hex, bin, octal and ascii on the command line. Useful for debuging and so on. Sample output :
[gbarbier@obelix dev]$ bcv 0b110011 0x2a -204 3040 c hello ^M
0x33 = 063 = 0b110011 = 51 <-> '3'
0x2a = 052 = 0b101010 = 42 <-> '*'
0xffffff34 = 037777777464 = 0b11111111111111111111111100110100 = -204
0xbe0 = 05740 = 0b101111100000 = 3040
0x63 = 0143 = 0b1100011 = 99 <-> 'c'
0x68 = 0150 = 0b1101000 = 104 <-> 'h'
0x65 = 0145 = 0b1100101 = 101 <-> 'e'
0x6c = 0154 = 0b1101100 = 108 <-> 'l'
0x6c = 0154 = 0b1101100 = 108 <-> 'l'
0x6f = 0157 = 0b1101111 = 111 <-> 'o'
0xd = 015 = 0b1101 = 13 <-> ^M
txttxt is a simple command-line tool that converts end-of-line sequences from one system to another. It understands the EOL sequences used by DOS, MacOS, Unix, and the reversed DOS sequence. txt can handle mixed-type inputs where the EOL sequence differs from line to line. It can handle several files at once, preserving their permissions/ownership, and it can handle standard input. I personnaly tested compilation and correct execution successfully on the following platforms : Linux/i386/gcc, AIX/rs6000/ibmcxx, Solaris/sparc/gcc. This program won't work properly on cygwin32/i386/gcc due to special handling of end of lines on this platform.
mmap_dispatchReport information about memory allocated by processes, using /proc/*/maps. May be helpfull to evaluate processes use of memory. This script is Linux specific. Online help:
mmap_dispatch version 1.0.0
usage:
./prj/dev/mmap_dispatch [-h|--help]
displays this help info
./prj/dev/mmap_dispatch [-H|--headers] pid [pid2 [pid3 [...]]]
displays mmap info about specified processes
./prj/dev/mmap_dispatch [-H|--headers] [-a|--all]
displays mmap info about all processes
private memory is that which is writeable and of type 'copy on write'.
shared memory is that which is of type 'shared'.
sharable memory is that which is not writeable and 'copy on write'.
private memory can even be shared (if not written).
sharable memory is shared if more than one process maps the same
resources.
see man mmap for more details.
Notes :
|