00001 /** 00002 * @file daemon/opd_pipe.h 00003 * Functions handling the $SESSIONDIR/opd_pipe FIFO special file. 00004 * NOTE: This code is dealing with potencially insecure input. 00005 * 00006 * @remark Copyright 2008 OProfile authors 00007 * @remark Read the file COPYING 00008 * 00009 * @author Daniel Hansel 00010 */ 00011 00012 #ifndef OPD_PIPE_H_ 00013 #define OPD_PIPE_H_ 00014 00015 /** 00016 * opd_create_pipe - creates the oprofiled fifo file 00017 * 00018 * Creates the Oprofile daemon fifo pipe to enable communication between 00019 * the daemon and the 'opcontrol --dump' command. Failure to create the pipe 00020 * is a fatal error. 00021 */ 00022 void opd_create_pipe(void); 00023 00024 /** 00025 * opd_open_pipe - opens the oprofiled fifo file 00026 */ 00027 void opd_open_pipe(void); 00028 00029 /** 00030 * opd_close_pipe - closes the oprofiled fifo file 00031 * 00032 * Closes the Oprofile daemon fifo pipe. 00033 */ 00034 void opd_close_pipe(void); 00035 00036 /** 00037 * is_jitconv_requested - check for request to jit conversion 00038 * 00039 * Checks the Oprofile daemon fifo pipe for do_jitconv request. 00040 * If jit conversion is requested ('do_jitconv' is sent) the check returns 1. 00041 * Otherwise it returns 0. 00042 */ 00043 int is_jitconv_requested(void); 00044 00045 #endif /*OPD_PIPE_H_*/
1.6.1