HPCToolkit
io-over.c File Reference
#include <sys/types.h>
#include <errno.h>
#include <stdio.h>
#include <ucontext.h>
#include <unistd.h>
#include <main.h>
#include <safe-sampling.h>
#include <sample_event.h>
#include <thread_data.h>
#include <messages/messages.h>
#include <monitor-exts/monitor_ext.h>
#include <sample-sources/io.h>
Include dependency graph for io-over.c:

Go to the source code of this file.

Macros

#define real_read   __read
 
#define real_write   __write
 
#define real_fread   _IO_fread
 
#define real_fwrite   _IO_fwrite
 

Typedefs

typedef ssize_t read_fn_t(int, void *, size_t)
 
typedef ssize_t write_fn_t(int, const void *, size_t)
 
typedef size_t fread_fn_t(void *, size_t, size_t, FILE *)
 
typedef size_t fwrite_fn_t(const void *, size_t, size_t, FILE *)
 

Functions

ssize_t MONITOR_EXT_WRAP_NAME() read (int fd, void *buf, size_t count)
 
ssize_t MONITOR_EXT_WRAP_NAME() write (int fd, const void *buf, size_t count)
 
size_t MONITOR_EXT_WRAP_NAME() fread (void *ptr, size_t size, size_t count, FILE *stream)
 
size_t MONITOR_EXT_WRAP_NAME() fwrite (const void *ptr, size_t size, size_t count, FILE *stream)
 

Variables

read_fn_t real_read
 
write_fn_t real_write
 
fread_fn_t real_fread
 
fwrite_fn_t real_fwrite
 

Macro Definition Documentation

◆ real_fread

#define real_fread   _IO_fread

Definition at line 137 of file io-over.c.

◆ real_fwrite

#define real_fwrite   _IO_fwrite

Definition at line 138 of file io-over.c.

◆ real_read

#define real_read   __read

Definition at line 135 of file io-over.c.

◆ real_write

#define real_write   __write

Definition at line 136 of file io-over.c.

Typedef Documentation

◆ fread_fn_t

typedef size_t fread_fn_t(void *, size_t, size_t, FILE *)

Definition at line 114 of file io-over.c.

◆ fwrite_fn_t

typedef size_t fwrite_fn_t(const void *, size_t, size_t, FILE *)

Definition at line 115 of file io-over.c.

◆ read_fn_t

typedef ssize_t read_fn_t(int, void *, size_t)

Definition at line 111 of file io-over.c.

◆ write_fn_t

typedef ssize_t write_fn_t(int, const void *, size_t)

Definition at line 112 of file io-over.c.

Function Documentation

◆ fread()

size_t MONITOR_EXT_WRAP_NAME() fread ( void *  ptr,
size_t  size,
size_t  count,
FILE *  stream 
)

Definition at line 226 of file io-over.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fwrite()

size_t MONITOR_EXT_WRAP_NAME() fwrite ( const void *  ptr,
size_t  size,
size_t  count,
FILE *  stream 
)

Definition at line 260 of file io-over.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read()

ssize_t MONITOR_EXT_WRAP_NAME() read ( int  fd,
void *  buf,
size_t  count 
)

Definition at line 152 of file io-over.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

ssize_t MONITOR_EXT_WRAP_NAME() write ( int  fd,
const void *  buf,
size_t  count 
)

Definition at line 189 of file io-over.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ real_fread

fread_fn_t real_fread

◆ real_fwrite

fwrite_fn_t real_fwrite

◆ real_read

read_fn_t real_read

◆ real_write

write_fn_t real_write