Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/pmcstat/pmcstat.h
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | struct pmcstat_ev { | ||||
char *ev_spec; /* event specification */ | char *ev_spec; /* event specification */ | ||||
}; | }; | ||||
struct pmcstat_target { | struct pmcstat_target { | ||||
SLIST_ENTRY(pmcstat_target) pt_next; | SLIST_ENTRY(pmcstat_target) pt_next; | ||||
pid_t pt_pid; | pid_t pt_pid; | ||||
}; | }; | ||||
struct pmcstat_path { | |||||
STAILQ_ENTRY(pmcstat_path) pp_next; | |||||
char *pp_path; /* pathname */ | |||||
}; | |||||
struct pmcstat_args { | struct pmcstat_args { | ||||
int pa_flags; /* argument flags */ | int pa_flags; /* argument flags */ | ||||
int pa_required; /* required features */ | int pa_required; /* required features */ | ||||
int pa_pplugin; /* pre-processing plugin */ | int pa_pplugin; /* pre-processing plugin */ | ||||
int pa_plugin; /* analysis plugin */ | int pa_plugin; /* analysis plugin */ | ||||
int pa_verbosity; /* verbosity level */ | int pa_verbosity; /* verbosity level */ | ||||
FILE *pa_printfile; /* where to send printed output */ | FILE *pa_printfile; /* where to send printed output */ | ||||
int pa_logfd; /* output log file */ | int pa_logfd; /* output log file */ | ||||
char *pa_inputpath; /* path to input log */ | char *pa_inputpath; /* path to input log */ | ||||
char *pa_outputpath; /* path to output log */ | char *pa_outputpath; /* path to output log */ | ||||
void *pa_logparser; /* log file parser */ | void *pa_logparser; /* log file parser */ | ||||
const char *pa_fsroot; /* FS root where executables reside */ | const char *pa_fsroot; /* FS root where executables reside */ | ||||
char *pa_kernel; /* pathname of the kernel */ | char *pa_kernel; /* pathname of the kernel */ | ||||
char *pa_module_path; /* pathnames of the kernel modules */ | |||||
const char *pa_samplesdir; /* directory for profile files */ | const char *pa_samplesdir; /* directory for profile files */ | ||||
const char *pa_mapfilename;/* mapfile name */ | const char *pa_mapfilename;/* mapfile name */ | ||||
FILE *pa_graphfile; /* where to send the callgraph */ | FILE *pa_graphfile; /* where to send the callgraph */ | ||||
int pa_graphdepth; /* print depth for callgraphs */ | int pa_graphdepth; /* print depth for callgraphs */ | ||||
double pa_interval; /* printing interval in seconds */ | double pa_interval; /* printing interval in seconds */ | ||||
cpuset_t pa_cpumask; /* filter for CPUs analysed */ | cpuset_t pa_cpumask; /* filter for CPUs analysed */ | ||||
int pa_ctdumpinstr; /* dump instructions with calltree */ | int pa_ctdumpinstr; /* dump instructions with calltree */ | ||||
int pa_topmode; /* delta or accumulative */ | int pa_topmode; /* delta or accumulative */ | ||||
int pa_toptty; /* output to tty or file */ | int pa_toptty; /* output to tty or file */ | ||||
int pa_topcolor; /* terminal support color */ | int pa_topcolor; /* terminal support color */ | ||||
int pa_mergepmc; /* merge PMC with same name */ | int pa_mergepmc; /* merge PMC with same name */ | ||||
double pa_duration; /* time duration */ | double pa_duration; /* time duration */ | ||||
int pa_argc; | int pa_argc; | ||||
char **pa_argv; | char **pa_argv; | ||||
STAILQ_HEAD(, pmcstat_ev) pa_events; | STAILQ_HEAD(, pmcstat_ev) pa_events; | ||||
SLIST_HEAD(, pmcstat_target) pa_targets; | SLIST_HEAD(, pmcstat_target) pa_targets; | ||||
STAILQ_HEAD(, pmcstat_path) pa_modules; | |||||
}; | }; | ||||
extern int pmcstat_displayheight; /* current terminal height */ | extern int pmcstat_displayheight; /* current terminal height */ | ||||
extern int pmcstat_displaywidth; /* current terminal width */ | extern int pmcstat_displaywidth; /* current terminal width */ | ||||
extern struct pmcstat_args args; /* command line args */ | extern struct pmcstat_args args; /* command line args */ | ||||
/* Function prototypes */ | /* Function prototypes */ | ||||
void pmcstat_attach_pmcs(void); | void pmcstat_attach_pmcs(void); | ||||
Show All 21 Lines |