1 /** 2 * @file daemon/opd_pipe.h 3 * Functions handling the $SESSIONDIR/opd_pipe FIFO special file. 4 * NOTE: This code is dealing with potencially insecure input. 5 * 6 * @remark Copyright 2008 OProfile authors 7 * @remark Read the file COPYING 8 * 9 * @author Daniel Hansel 10 */ 11 12 #ifndef OPD_PIPE_H_ 13 #define OPD_PIPE_H_ 14 15 /** 16 * opd_create_pipe - creates the oprofiled fifo file 17 * 18 * Creates the Oprofile daemon fifo pipe to enable communication between 19 * the daemon and the 'opcontrol --dump' command. Failure to create the pipe 20 * is a fatal error. 21 */ 22 void opd_create_pipe(void); 23 24 /** 25 * opd_open_pipe - opens the oprofiled fifo file 26 */ 27 void opd_open_pipe(void); 28 29 /** 30 * opd_close_pipe - closes the oprofiled fifo file 31 * 32 * Closes the Oprofile daemon fifo pipe. 33 */ 34 void opd_close_pipe(void); 35 36 /** 37 * is_jitconv_requested - check for request to jit conversion 38 * 39 * Checks the Oprofile daemon fifo pipe for do_jitconv request. 40 * If jit conversion is requested ('do_jitconv' is sent) the check returns 1. 41 * Otherwise it returns 0. 42 */ 43 int is_jitconv_requested(void); 44 45 #endif /*OPD_PIPE_H_*/ 46