[syslog-ng] syslog-ng 1.4.4 and IRIX 6.x

C. Chan cchan@surya.bsd.uchicago.edu
Mon, 19 Jun 2000 14:42:48 -0500 (CDT)


Also Sprach Balazs Scheidler:

> > I've seen mention of OSF1 and AIX mentioned in the list archives,
> > but didn't see one re. IRIX in my brief search. Has someone ported
> > syslog-ng to IRIX or has some ideas about where to begin?
> 
> 
> AIX uses the unix-dgram driver. What would help here is a truss output of a logger command sending a message to the native syslogd process.
> 
> 

IRIX has the par utility which is similar to truss:

# par -s -SS logger "testing"

    0mS                 : received signal SIGUSR1 (handler 0x100029d8)
    0mS                 : END-pause() errno = 4 (Interrupted function call)
    0mS                 : sigreturn(0x7fff2ab0) OK
    0mS                 : execve("/usr/cdr/bin/IRIX65/logger", 0x7fff2f20, 0x7fff2f2c) errno = 2 (No such file or directory)
    1mS                 : execve("/usr/cdr/bin/IRIX65/logger", 0x7fff2f20, 0x7fff2f2c) errno = 2 (No such file or directory)
    2mS                 : execve("/usr/sbin/logger", 0x7fff2f20, 0x7fff2f2c) errno = 2 (No such file or directory)
    2mS                 : execve("/usr/bsd/logger", 0x7fff2f20, 0x7fff2f2c)
    6mS                 : END-execve() OK
    6mS                 : open("/lib32/rld", O_RDONLY, 04) = 3
    7mS                 : read(3, <7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00>..., 512) = 512
    7mS                 : elfmap(3, 0x7fff2d04, 2) = 0xfb60000
    7mS                 : close(3) OK
    7mS                 : getpagesize() = 4096
    8mS                 : open("/dev/zero", O_RDONLY, 0) = 3
    8mS                 : mmap(0xfbdb000, 20480, PROT_WRITE|PROT_READ, MAP_PRIVATE, 3, 0) = 0xfbdb000
    8mS                 : close(3) OK
    9mS                 : sysinfo(_MIPS_SI_PROCESSORS, 0x7fff2d40, 257) = 10
   13mS                 : syssgi(SGI_TOSSTSAVE) OK
   14mS                 : getpagesize() = 4096
   14mS                 : brk(0x10044000) OK
   14mS                 : syssgi(SGI_USE_FP_BCOPY, 0, 0x181, 0xffffffff, 0x180, 0) = 0
   15mS                 : fstat(0, 0x7fff2470) OK
   15mS                 : ioctl(0, __OLD_TCGETA, <bad indirect __old_termio param - len 30>) OK
   15mS                 : open("/dev", O_RDONLY|O_NONBLOCK, 07) = 3
   16mS                 : fcntl(3, F_SETFD, 1) OK
   16mS                 : fstat(3, 0x7fff2230) OK
   16mS                 : brk(0x10048000) OK
   16mS                 : ngetdents(3, 0x10043328, 16384, 0x7fff22c0) = 6264
   18mS                 : stat("/dev/ttyq4", 0x7fff2300) OK
   18mS                 : close(3) OK
   18mS                 : open("/var/adm/utmp", O_RDONLY, 02001030635) = 3
   19mS                 : read(3, <00 00 00 00 00 00 00 00 00 00 00 00 73 79 73 74>..., 36) = 36
   19mS                 : read(3, <00 00 00 00 00 00 00 00 00 00 00 00 72 75 6e 2d>..., 36) = 36
   19mS                 : read(3, <6c 6e 73 79 73 63 6f 6e 6c 69 6e 6b 00 00 00 00>..., 36) = 36
   19mS                 : read(3, <72 63 32 00 00 00 00 00 73 32 00 00 00 00 00 00>..., 36) = 36
   19mS                 : read(3, <74 63 70 00 00 00 00 00 50 4d 31 30 00 00 00 00>..., 36) = 36
   19mS                 : read(3, <4c 4f 47 49 4e 00 00 00 74 31 00 00 74 74 79 64>..., 36) = 36
   19mS                 : read(3, <63 77 63 00 00 00 00 00 71 30 00 00 74 74 79 71>..., 36) = 36
   19mS                 : read(3, <63 77 63 00 00 00 00 00 71 31 00 00 74 74 79 71>..., 36) = 36
   20mS                 : read(3, <00 00 00 00 00 00 00 00 71 33 00 00 74 74 79 71>..., 36) = 36
   20mS                 : read(3, 0x7fff2600, 36) = 0
   20mS                 : close(3) OK
   20mS                 : getuid() = 0, euid=0
   20mS                 : stat("/etc/passwd", 0x7fff2530) OK
   20mS                 : open("/var/ns/cache/passwd.byuid", O_RDONLY, 0400) = 3
   21mS                 : fstat(3, 0x7fff19e0) OK
   21mS                 : mmap(0, 65536, PROT_READ, MAP_SHARED, 3, 0) = 0x4000000
   21mS                 : close(3) OK
   22mS                 : time() = 961442112
   22mS                 : stat("/etc/shadow", 0x7fff23c0) OK
   22mS                 : open("/var/ns/cache/shadow.byname", O_RDONLY, 0400) = 3
   22mS                 : fstat(3, 0x7fff1880) OK
   22mS                 : mmap(0, 65536, PROT_READ, MAP_SHARED, 3, 0) = 0x4010000
   23mS                 : close(3) OK
   23mS                 : time() = 961442112
   23mS                 : close(1) OK
   23mS                 : open("/dev/log", O_WRONLY, 0) = 1
   24mS                 : fcntl(1, F_SETFD, 1) OK
   24mS                 : time() = 961442112
   25mS                 : putmsg(1, 0x7fff2568, 0x7fff2578, 0) = 0
   26mS                 : prctl(PR_LASTSHEXIT) = 1
   26mS                 : exit(0)

System call summary:
                        Average     Total
Name           #Calls  Time(ms)  Time(ms)
-----------------------------------------
execve              4      1.41      5.62
open                7      0.33      2.31
ngetdents           1      1.71      1.71
read               11      0.09      0.94
mmap                3      0.18      0.54
stat                3      0.17      0.52
ioctl               1      0.46      0.46
close               7      0.04      0.25
putmsg              1      0.22      0.22
elfmap              1      0.20      0.20
syssgi              2      0.10      0.20
brk                 2      0.08      0.17
fstat               4      0.04      0.16
fcntl               2      0.02      0.05
time                3      0.01      0.03
sigreturn           1      0.03      0.03
getpagesize         2      0.01      0.03
sysinfo             1      0.02      0.02
prctl               1      0.01      0.01
getuid              1      0.01      0.01
exit                1      0.00      0.00


-- 
C. Chan < c-chan@uchicago.edu > 
Dept. of Radiology, The University Of Chicago
Advanced and High Performance Computing
PGP Public Key: finger cchan@surya.bsd.uchicago.edu