Automated merge with file:///e:\srv\hg\admin-doc
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 13 Sep 2009 12:14:46 +0300
changeset 196 fa28414a4a8d
parent 194 c9a5f5dad40d (diff)
parent 195 514a359034f2 (current diff)
child 197 89a7852aa71b
Automated merge with file:///e:\srv\hg\admin-doc
--- a/driver-win.rst	Sun Sep 13 12:14:41 2009 +0300
+++ b/driver-win.rst	Sun Sep 13 12:14:46 2009 +0300
@@ -37,6 +37,30 @@
 
 * Tools.
 
+** Msinfo32.exe
+
+Windows XP/2003 System Information Tool.
+
+See
+
+  http://support.microsoft.com/kb/308549
+
+** Sysinternals.
+
+*** WinObj.
+
+Winobj is a program that lets you browse the Windows NT Object Manager
+namespace.
+
+** devtree.
+
+The DeviceTree V2.12 utility is a Windows XP/Server 2003 utility written by
+OSR, that allows the user the ability to display the drivers and devices
+loaded in 2 different views. The first view Driver View the user sees a list
+of all the drivers loaded in kernel mode and all the devices that those
+drivers have created. In the second view PnP View the user sees a list of all
+the devices in the system from that of Plug and Play Manager (PnP).
+
 ** Microsoft DDK.
 
 *** DevCon.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/embedded.rst	Sun Sep 13 12:14:46 2009 +0300
@@ -0,0 +1,5 @@
+-*- mode: outline; coding: utf-8 -*-
+
+* Embedded OS.
+
+bertos/contiki/tnkernel/nut/rtems/threadx/mantis/rtt/smx/scmrtos/xmkrtos/freertos/tinyos
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gcc.rst	Sun Sep 13 12:14:46 2009 +0300
@@ -0,0 +1,38 @@
+-*- mode: outline; coding: utf-8 -*-
+
+* Remove dead code.
+
+  STRIP_DEAD_CODE = -Wl,-static -fvtable-gc -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-s
+
+  -Wl,-static
+                Link against static libraries. Required for dead-code
+                elimination.
+
+  -fvtable-gc
+                C++ virtual method table instrumented with garbage collection
+                information for the linker.
+
+  -fdata-sections
+                Keeps data in separate data sections, so they can be discarded
+                if unused.
+
+  -ffunction-sections
+                Keeps funcitons in separate data sections, so they can be
+                discarded if unused.
+
+  -Wl,--gc-sections
+                Tell the linker to garbage collect and discard unused
+                sections.
+
+  -s
+                Strip the debug information, so as to make the code as small
+                as possible. (I presume that you'd want to do this in a
+                dead-code removal build.)
+
+* Map file.
+
+  $ ld -Map=file.map <opts> <files>
+
+or
+
+  $ gcc -Wl,-Map=file.map <opts> <files>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stat.rst	Sun Sep 13 12:14:46 2009 +0300
@@ -0,0 +1,124 @@
+-*- mode: outline; coding: utf-8 -*-
+
+* Cpu consumption.
+
+** Linux.
+
+*** Interactive.
+
+  $ top
+
+*** Static.
+
+  $ ps -eo %cpu,pid,cmd --sort=%cpu
+
+** FreeBSD.
+
+*** Interactive.
+
+  $ top
+
+** Windows.
+
+  cmd> taskmgr
+
+** Solaris.
+
+See
+
+  http://developers.sun.com/solaris/articles/prstat.html
+                Topping top in Solaris 8 with prstat.
+
+*** Interactive.
+
+  $ perfmeter
+
+*** Static.
+
+  $ prstat
+
+  $ mpstat <num> <seconds>
+
+* Memory consumption.
+
+** Linux.
+
+*** Interactive.
+
+  $ top
+
+*** Static.
+
+Vitual and resident memory size:
+
+  $ ps -eo vsz,rsz,pid,cmd --sort=vsz
+
+Swap size and usage:
+
+  $ free
+
+** FreeBSD.
+
+*** Interactive.
+
+  $ top
+
+*** Static.
+
+Swap size:
+
+  $ swapinfo
+  $ pstat -s
+
+Swap usage:
+
+  $ vmstat
+
+** Solaris.
+
+  $ sar -g
+
+  $ vmstat
+
+  $ prstat -s size
+
+** Windows.
+
+  cmd> taskmgr
+
+and add colums TODO.
+
+** Solaris.
+
+  $ prstat -a
+
+* Opened file by process.
+
+** Linux.
+
+  $ lsof -p <pid>
+
+** FreeBSD.
+
+  $ fstat -p <pid>
+
+** Windows.
+
+* Opened file by user.
+
+** FreeBSD.
+
+  $ fstat -u <user>
+
+* Opened network connection by process.
+
+** Linux.
+
+  $ lsof -i[46][protocol][@{hostname|hostaddr}][:{service|port}]
+
+46 - IPV4 or IPV6
+protocol - tcp, udp
+
+** FreeBSD.
+
+** Windows.