#include <signal.h>

Go to the source code of this file.
Data Structures | |
| struct | oprofiled_ops |
Functions | |
| void | opd_open_logfile (void) |
| int | is_image_ignored (char const *name) |
| int | opd_read_fs_int (char const *path, char const *name, int is_fatal) |
Variables | |
| sig_atomic_t | signal_alarm |
| sig_atomic_t | signal_hup |
| sig_atomic_t | signal_term |
| sig_atomic_t | signal_child |
| sig_atomic_t | signal_usr1 |
| sig_atomic_t | signal_usr2 |
| unsigned int | op_nr_counters |
| int | separate_lib |
| int | separate_kernel |
| int | separate_thread |
| int | separate_cpu |
| int | no_vmlinux |
| char * | vmlinux |
| char * | kernel_range |
| int | no_xen |
| char * | xenimage |
| char * | xen_range |
Initialisation and setup
Definition in file oprofiled.h.
| int is_image_ignored | ( | char const * | name | ) |
is_image_ignored - check if we must ignore this image
| name | the name to check |
Return true if the image should not be profiled
Definition at line 323 of file oprofiled.c.
References binary_name_filter, images_filter, list_entry, list_for_each, opd_hashed_name::name, opd_hashed_name::next, op_hash_string(), and OPD_IMAGE_FILTER_HASH_SIZE.
Referenced by create_cookie(), is_sf_ignored(), and opd_new_image().


| void opd_open_logfile | ( | void | ) |
opd_open_logfile - open the log file
Open the logfile on stdout and stderr. This function assumes that 1 and 2 are the lowest close()d file descriptors. Failure to open on either descriptor is a fatal error.
Definition at line 107 of file oprofiled.c.
References op_log_file.
Referenced by op_open_files(), opd_open_files(), and opd_sighup().

| int opd_read_fs_int | ( | char const * | path, | |
| char const * | name, | |||
| int | fatal | |||
| ) |
return the int in the given oprofilefs file, error is fatal if !is_fatal
return the int in the given oprofilefs file
Definition at line 345 of file oprofiled.c.
References filename, and op_read_int_from_file().
Referenced by opd_24_init(), opd_26_init(), opd_print_24_stats(), and print_if().


| char* kernel_range |
Definition at line 69 of file oprofiled.c.
Referenced by opd_24_init(), opd_26_init(), and opd_options().
| int no_vmlinux |
Definition at line 67 of file oprofiled.c.
| int no_xen |
Definition at line 71 of file oprofiled.c.
Referenced by opd_create_xen(), and opd_options().
| unsigned int op_nr_counters |
Definition at line 54 of file oprofiled.c.
| int separate_cpu |
Definition at line 66 of file oprofiled.c.
| int separate_kernel |
Definition at line 64 of file oprofiled.c.
Referenced by create_sfile(), do_match(), get_dep_name(), opd_options(), opd_put_sample(), and sfile_hash().
| int separate_lib |
Definition at line 63 of file oprofiled.c.
Referenced by create_sfile(), do_match(), get_dep_name(), is_same_image(), opd_mangle_filename(), opd_new_image(), opd_options(), and sfile_hash().
| int separate_thread |
Definition at line 65 of file oprofiled.c.
| sig_atomic_t signal_alarm |
global variable positioned by signal handler
Definition at line 47 of file oprofiled.c.
Referenced by opd_alarm(), and opd_do_read().
| sig_atomic_t signal_child |
Definition at line 50 of file oprofiled.c.
Referenced by opd_do_read(), and opd_sigchild().
| sig_atomic_t signal_hup |
Definition at line 48 of file oprofiled.c.
Referenced by opd_do_read(), and opd_sighup().
| sig_atomic_t signal_term |
Definition at line 49 of file oprofiled.c.
Referenced by opd_do_read(), and opd_sigterm().
| sig_atomic_t signal_usr1 |
Definition at line 51 of file oprofiled.c.
Referenced by opd_do_read(), and opd_sigusr1().
| sig_atomic_t signal_usr2 |
Definition at line 52 of file oprofiled.c.
Referenced by opd_do_read(), and opd_sigusr2().
| char* vmlinux |
Definition at line 68 of file oprofiled.c.
Referenced by _process_operf_and_app_args(), opd_26_exit(), opd_26_init(), opd_add_kernel_map(), opd_init_kernel_image(), opd_options(), process_args(), and start_profiling().
| char* xen_range |
Definition at line 73 of file oprofiled.c.
Referenced by opd_26_init(), and opd_options().
| char* xenimage |
Definition at line 72 of file oprofiled.c.
Referenced by opd_26_init(), and opd_options().
1.6.1