1*e137d3e0SchristosThe following is a demonstration of the mmapfiles.d script. 2*e137d3e0Schristos 3*e137d3e0SchristosHere we run mmapfiles.d while in another window a new bash shell is started. 4*e137d3e0SchristosThe files that were mapped in aren't suprising, they are the common shared 5*e137d3e0Schristoslibrarios, 6*e137d3e0Schristos 7*e137d3e0Schristos # mmapfiles.d 8*e137d3e0Schristos Tracing... Hit Ctrl-C to end. 9*e137d3e0Schristos ^C 10*e137d3e0Schristos MMAPS CMD PATHNAME 11*e137d3e0Schristos 1 bash /lib/libdl.so.1 12*e137d3e0Schristos 3 bash /lib/libsocket.so.1 13*e137d3e0Schristos 3 bash /lib/libnsl.so.1 14*e137d3e0Schristos 3 bash /lib/libc.so.1 15*e137d3e0Schristos 3 bash /lib/libcurses.so.1 16*e137d3e0Schristos 17*e137d3e0Schristos 18*e137d3e0Schristos 19*e137d3e0SchristosNow we examine zsh. This time a number of extra libraries are mapped, 20*e137d3e0Schristos 21*e137d3e0Schristos # mmapfiles.d 22*e137d3e0Schristos Tracing... Hit Ctrl-C to end. 23*e137d3e0Schristos ^C 24*e137d3e0Schristos MMAPS CMD PATHNAME 25*e137d3e0Schristos 1 zsh /lib/libdl.so.1 26*e137d3e0Schristos 3 getent /lib/libc.so.1 27*e137d3e0Schristos 3 getent /lib/libnsl.so.1 28*e137d3e0Schristos 3 getent /lib/libsocket.so.1 29*e137d3e0Schristos 3 zsh /usr/sfw/lib/zsh/4.2.1/zsh/parameter.so 30*e137d3e0Schristos 3 zsh /usr/sfw/lib/zsh/4.2.1/zsh/zutil.so 31*e137d3e0Schristos 3 zsh /usr/sfw/lib/zsh/4.2.1/zsh/complete.so 32*e137d3e0Schristos 3 zsh /usr/sfw/lib/zsh/4.2.1/zsh/stat.so 33*e137d3e0Schristos 3 zsh /usr/sfw/lib/zsh/4.2.1/zsh/zle.so 34*e137d3e0Schristos 3 tset /lib/libc.so.1 35*e137d3e0Schristos 3 tset /opt/sfw/lib/libncurses.so.5.2 36*e137d3e0Schristos 3 zsh /lib/libc.so.1 37*e137d3e0Schristos 3 zsh /lib/libm.so.2 38*e137d3e0Schristos 3 zsh /lib/libcurses.so.1 39*e137d3e0Schristos 3 zsh /lib/libnsl.so.1 40*e137d3e0Schristos 3 zsh /usr/sfw/lib/zsh/4.2.1/zsh/complist.so 41*e137d3e0Schristos 3 zsh /lib/libsocket.so.1 42*e137d3e0Schristos 43*e137d3e0Schristos 44*e137d3e0Schristos 45*e137d3e0SchristosSometimes the output can be quite suprising. The following shows the mmaps 46*e137d3e0Schristoscaused by the "sdtaudiocontrol" tool, a java tool to change the volume levels 47*e137d3e0Schristoson Solaris, 48*e137d3e0Schristos 49*e137d3e0Schristos # mmapfiles.d 50*e137d3e0Schristos Tracing... Hit Ctrl-C to end. 51*e137d3e0Schristos 52*e137d3e0Schristos MMAPS CMD PATHNAME 53*e137d3e0Schristos 1 java /usr/jdk/packages/jmf/lib/ext/jmplay.jar 54*e137d3e0Schristos 1 java /usr/dt/appconfig/sdtaudiocontrol/classes/SDtAudioControl.jar 55*e137d3e0Schristos 1 java /usr/dt/classes/xservices.jar 56*e137d3e0Schristos 1 java /usr/dt/classes/jhall.jar 57*e137d3e0Schristos 1 java /usr/dt/classes/jsearch.jar 58*e137d3e0Schristos 1 java /usr/jdk/packages/jmf/lib/ext/mp3plugin.jar 59*e137d3e0Schristos 1 java /usr/jdk/packages/jmf/lib/ext/jmfmp3.jar 60*e137d3e0Schristos 1 java /usr/jdk/packages/jmf/lib/ext/multiplayer.jar 61*e137d3e0Schristos 1 java /usr/jdk/packages/jmf/lib/ext/mediaplayer.jar 62*e137d3e0Schristos 1 java /usr/jdk/packages/jmf/lib/ext/jmf.jar 63*e137d3e0Schristos 1 java /usr/jdk/packages/jai-imageio/lib/ext/jai_imageio.jar 64*e137d3e0Schristos 1 java /usr/jdk/packages/jai-imageio/lib/ext/clibwrapper_jiio.jar 65*e137d3e0Schristos 1 java /usr/jdk/packages/jai/lib/ext/mlibwrapper_jai.jar 66*e137d3e0Schristos 1 java /usr/jdk/packages/jai/lib/ext/jai_core.jar 67*e137d3e0Schristos 1 java /usr/jdk/packages/jai/lib/ext/jai_codec.jar 68*e137d3e0Schristos 1 java /usr/jdk/packages/javax.help-2.0/lib/jhall.jar 69*e137d3e0Schristos 1 java /usr/jdk/instances/jdk1.5.0/jre/lib/ext/sunpkcs11.jar 70*e137d3e0Schristos 1 java /usr/jdk/instances/jdk1.5.0/jre/lib/ext/sunjce_provider.jar 71*e137d3e0Schristos 1 java /usr/jdk/instances/jdk1.5.0/jre/lib/ext/localedata.jar 72*e137d3e0Schristos 1 java /usr/jdk/instances/jdk1.5.0/jre/lib/ext/dnsns.jar 73*e137d3e0Schristos 1 java /tmp/hsperfdata_root/6464 74*e137d3e0Schristos 1 java /tmp/hsperfdata_root/6455 75*e137d3e0Schristos 2 java /usr/lib/libsched.so.1 76*e137d3e0Schristos 2 java /usr/jdk/instances/jdk1.5.0/jre/lib/charsets.jar 77*e137d3e0Schristos 2 java /usr/jdk/instances/jdk1.5.0/jre/lib/jce.jar 78*e137d3e0Schristos 2 java /usr/jdk/instances/jdk1.5.0/jre/lib/jsse.jar 79*e137d3e0Schristos 2 java /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar 80*e137d3e0Schristos 3 sdtaudiocontrol /lib/libc.so.1 81*e137d3e0Schristos 3 java /usr/jdk/instances/jdk1.5.0/jre/lib/i386/headless/libmawt.so 82*e137d3e0Schristos 3 java /usr/jdk/instances/jdk1.5.0/jre/lib/i386/libmlib_image.so 83*e137d3e0Schristos 3 ls /lib/libc.so.1 84*e137d3e0Schristos 3 rm /lib/libc.so.1 85*e137d3e0Schristos 3 java /usr/dt/appconfig/sdtaudiocontrol/lib/libAudioControl.so 86*e137d3e0Schristos 3 java /usr/jdk/instances/jdk1.5.0/jre/lib/i386/libawt.so 87*e137d3e0Schristos 4 java /lib/libdl.so.1 88*e137d3e0Schristos 6 java /usr/jdk/instances/jdk1.5.0/jre/lib/i386/libzip.so 89*e137d3e0Schristos 6 java /usr/jdk/instances/jdk1.5.0/jre/lib/i386/libjava.so 90*e137d3e0Schristos 6 java /usr/jdk/instances/jdk1.5.0/jre/lib/i386/libverify.so 91*e137d3e0Schristos 6 java /lib/libscf.so.1 92*e137d3e0Schristos 6 java /usr/lib/libCrun.so.1 93*e137d3e0Schristos 6 java /lib/libnsl.so.1 94*e137d3e0Schristos 6 java /lib/libm.so.1 95*e137d3e0Schristos 6 java /usr/jdk/instances/jdk1.5.0/jre/lib/i386/client/libjvm.so 96*e137d3e0Schristos 6 java /lib/libsocket.so.1 97*e137d3e0Schristos 6 java /lib/libuutil.so.1 98*e137d3e0Schristos 6 java /usr/jdk/instances/jdk1.5.0/jre/lib/i386/native_threads/libhpi.so 99*e137d3e0Schristos 6 java /lib/libmp.so.2 100*e137d3e0Schristos 6 java /lib/libmd5.so.1 101*e137d3e0Schristos 6 java /lib/libm.so.2 102*e137d3e0Schristos 6 java /lib/libdoor.so.1 103*e137d3e0Schristos 8 java /usr/jdk/instances/jdk1.5.0/jre/lib/i386/client/classes.jsa 104*e137d3e0Schristos 8 java /lib/libthread.so.1 105*e137d3e0Schristos 12 java /lib/libc.so.1 106*e137d3e0Schristos 21 awk /lib/libm.so.2 107*e137d3e0Schristos 21 awk /lib/libc.so.1 108*e137d3e0Schristos 65 java /devices/pseudo/mm@0:zero 109*e137d3e0Schristos 110