opd_pipe.c File Reference

#include "opd_pipe.h"
#include "opd_printf.h"
#include "op_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <sys/stat.h>
Include dependency graph for opd_pipe.c:

Go to the source code of this file.

Functions

void opd_create_pipe (void)
void opd_open_pipe (void)
void opd_close_pipe (void)
int is_jitconv_requested (void)

Variables

static int fifo
static FILE * fifo_fd = NULL

Detailed Description

Functions handling the $SESSIONDIR/opd_pipe FIFO special file. NOTE: This code is dealing with potentially insecure input.

Remarks:
Copyright 2008 OProfile authors
Read the file COPYING
Author:
Daniel Hansel

Definition in file opd_pipe.c.


Function Documentation

int is_jitconv_requested ( void   ) 

is_jitconv_requested - check for request to jit conversion

Checks the Oprofile daemon fifo pipe for do_jitconv request. If jit conversion is requested ('do_jitconv' is sent) the check returns 1. Otherwise it returns 0.

Definition at line 58 of file opd_pipe.c.

References fifo, and fifo_fd.

Referenced by opd_do_read().

Here is the caller graph for this function:

void opd_close_pipe ( void   ) 

opd_close_pipe - closes the oprofiled fifo file

Closes the Oprofile daemon fifo pipe.

Definition at line 50 of file opd_pipe.c.

References fifo, and fifo_fd.

Referenced by opd_do_read().

Here is the caller graph for this function:

void opd_create_pipe ( void   ) 

opd_create_pipe - creates the oprofiled fifo file

Creates the Oprofile daemon fifo pipe to enable communication between the daemon and the 'opcontrol --dump' command. Failure to create the pipe is a fatal error.

Definition at line 27 of file opd_pipe.c.

References op_pipe_file.

Referenced by opd_open_files().

Here is the caller graph for this function:

void opd_open_pipe ( void   ) 

opd_open_pipe - opens the oprofiled fifo file

Definition at line 40 of file opd_pipe.c.

References fifo, and op_pipe_file.

Referenced by opd_do_read().

Here is the caller graph for this function:


Variable Documentation

int fifo [static]

Definition at line 24 of file opd_pipe.c.

Referenced by is_jitconv_requested(), opd_close_pipe(), and opd_open_pipe().

FILE* fifo_fd = NULL [static]

Definition at line 25 of file opd_pipe.c.

Referenced by is_jitconv_requested(), and opd_close_pipe().


Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1