34#include <sys/procfs.h>
35#include <sys/syscall.h>
58#define MAX_SYSCALLS 262
150#ifdef SYS_frealpathat
225 syscall_table[SYS_lwp_cond_broadcast] =
"lwp_cond_broadcast";
236#ifdef SYS_lwp_mutex_lock
239 syscall_table[SYS_lwp_mutex_register] =
"lwp_mutex_register";
240 syscall_table[SYS_lwp_mutex_timedlock] =
"lwp_mutex_timedlock";
252 syscall_table[SYS_lwp_sema_timedwait] =
"lwp_sema_timedwait";
254#ifdef SYS_lwp_sema_wait
258#ifdef SYS_lwp_sigqueue
328#ifdef SYS_processor_bind
331#ifdef SYS_processor_info
334#ifdef SYS_processor_sys
420#ifdef SYS_sparc_fixalign
423 syscall_table[SYS_sparc_utrap_install] =
"sparc_utrap_install";
452#ifdef SYS_system_stats
531 fprintf (file,
"<Unknown syscall %d> ", num);
548 if (prismember (sysset, i))
552 fprintf (file,
"\n");
569 { 0,
"<no signal>",
"no signal" },
574 { SIGINT,
"SIGINT",
"Interrupt (rubout)" },
575 { SIGILL,
"SIGILL",
"Illegal instruction" },
576 { SIGABRT,
"SIGABRT",
"used by abort()" },
577 { SIGFPE,
"SIGFPE",
"Floating point exception" },
578 { SIGSEGV,
"SIGSEGV",
"Segmentation violation" },
579 { SIGTERM,
"SIGTERM",
"Software termination signal from kill" },
583 { SIGHUP,
"SIGHUP",
"Hangup" },
584 { SIGQUIT,
"SIGQUIT",
"Quit (ASCII FS)" },
585 { SIGTRAP,
"SIGTRAP",
"Trace trap" },
586 { SIGIOT,
"SIGIOT",
"IOT instruction" },
587 { SIGEMT,
"SIGEMT",
"EMT instruction" },
588 { SIGKILL,
"SIGKILL",
"Kill" },
589 { SIGBUS,
"SIGBUS",
"Bus error" },
590 { SIGSYS,
"SIGSYS",
"Bad argument to system call" },
591 { SIGPIPE,
"SIGPIPE",
"Write to pipe with no one to read it" },
592 { SIGALRM,
"SIGALRM",
"Alarm clock" },
593 { SIGUSR1,
"SIGUSR1",
"User defined signal 1" },
594 { SIGUSR2,
"SIGUSR2",
"User defined signal 2" },
595 { SIGCHLD,
"SIGCHLD",
"Child status changed" },
596 { SIGCLD,
"SIGCLD",
"Child status changed" },
597 { SIGPWR,
"SIGPWR",
"Power-fail restart" },
598 { SIGWINCH,
"SIGWINCH",
"Window size change" },
599 { SIGURG,
"SIGURG",
"Urgent socket condition" },
600 { SIGPOLL,
"SIGPOLL",
"Pollable event" },
601 { SIGIO,
"SIGIO",
"Socket I/O possible" },
602 { SIGSTOP,
"SIGSTOP",
"Stop, not from tty" },
604 { SIGTSTP,
"SIGTSTP",
"User stop from tty" },
605 { SIGCONT,
"SIGCONT",
"Stopped process has been continued" },
606 { SIGTTIN,
"SIGTTIN",
"Background tty read attempted" },
607 { SIGTTOU,
"SIGTTOU",
"Background tty write attempted" },
608 { SIGVTALRM,
"SIGVTALRM",
"Virtual timer expired" },
609 { SIGPROF,
"SIGPROF",
"Profiling timer expired" },
610 { SIGXCPU,
"SIGXCPU",
"Exceeded CPU limit" },
611 { SIGXFSZ,
"SIGXFSZ",
"Exceeded file size limit" },
612 { SIGWAITING,
"SIGWAITING",
"Process's LWPs are blocked" },
613 { SIGLWP,
"SIGLWP",
"Used by thread library" },
614 { SIGFREEZE,
"SIGFREEZE",
"Used by CPR" },
615 { SIGTHAW,
"SIGTHAW",
"Used by CPR" },
616 { SIGCANCEL,
"SIGCANCEL",
"Used by libthread" },
617 { SIGLOST,
"SIGLOST",
"Resource lost" },
639 fprintf (file,
"Unknown signal %d%c", signo, verbose ?
'\n' :
' ');
659 for (i = 0; i < NSIG; i++)
660 if (prismember (sigset, i))
664 fprintf (file,
"\n");
680 { FLTILL,
"FLTILL",
"Illegal instruction" },
681 { FLTPRIV,
"FLTPRIV",
"Privileged instruction" },
682 { FLTBPT,
"FLTBPT",
"Breakpoint trap" },
683 { FLTTRACE,
"FLTTRACE",
"Trace trap" },
684 { FLTACCESS,
"FLTACCESS",
"Memory access fault" },
685 { FLTBOUNDS,
"FLTBOUNDS",
"Memory bounds violation" },
686 { FLTIOVF,
"FLTIOVF",
"Integer overflow" },
687 { FLTIZDIV,
"FLTIZDIV",
"Integer zero divide" },
688 { FLTFPE,
"FLTFPE",
"Floating-point exception" },
689 { FLTSTACK,
"FLTSTACK",
"Unrecoverable stack fault" },
690 { FLTPAGE,
"FLTPAGE",
"Recoverable page fault" },
691 { FLTWATCH,
"FLTWATCH",
"User watchpoint" },
721 fprintf (file,
"Unknown hardware fault %d%c",
722 faultno, verbose ?
'\n' :
' ');
747 fprintf (file,
"\n");
void proc_prettyprint_fault(int faultno, int verbose)
void _initialize_proc_events()
void proc_prettyprint_syscall(int num, int verbose)
static void prettyfprint_faulttable_entry(FILE *file, int i, int verbose)
void proc_prettyprint_actionset(struct sigaction *actions, int verbose)
void proc_prettyfprint_syscalls(FILE *file, sysset_t *sysset, int verbose)
void proc_prettyfprint_syscall(FILE *file, int num, int verbose)
void proc_prettyprint_signal(int signo, int verbose)
static struct trans signal_table[]
void proc_prettyprint_signalset(sigset_t *sigset, int verbose)
static const char * syscall_table[MAX_SYSCALLS]
void proc_prettyprint_syscalls(sysset_t *sysset, int verbose)
void proc_prettyfprint_signalset(FILE *file, sigset_t *sigset, int verbose)
void proc_prettyfprint_fault(FILE *file, int faultno, int verbose)
void proc_prettyfprint_faultset(FILE *file, fltset_t *fltset, int verbose)
void proc_prettyprint_faultset(fltset_t *fltset, int verbose)
static struct trans fault_table[]
static void init_syscall_table(void)
void proc_prettyfprint_signal(FILE *file, int signo, int verbose)