oprofiled.h File Reference

#include <signal.h>
Include dependency graph for oprofiled.h:
This graph shows which files directly or indirectly include this file:

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

Detailed Description

Initialisation and setup

Remarks:
Copyright 2002, 2003 OProfile authors
Read the file COPYING
Author:
John Levon
Philippe Elie Modified by Aravind Menon for Xen These modifications are: Copyright (C) 2005 Hewlett-Packard Co.

Definition in file oprofiled.h.


Function Documentation

int is_image_ignored ( char const *  name  ) 

is_image_ignored - check if we must ignore this image

Parameters:
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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

char* kernel_range

Definition at line 69 of file oprofiled.c.

Referenced by opd_24_init(), opd_26_init(), and opd_options().

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.

Definition at line 66 of file oprofiled.c.

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
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().


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1