86 #include <sys/types.h> 129 #ifdef HPCRUN_STATIC_LINK 130 #define real_read __real_read 131 #define real_write __real_write 132 #define real_fread __real_fread 133 #define real_fwrite __real_fwrite 135 #define real_read __read 136 #define real_write __write 137 #define real_fread _IO_fread 138 #define real_fwrite _IO_fwrite 176 TMSG(IO,
"read: fd: %d, buf: %p, count: %ld, actual: %ld",
177 fd,
buf, count, ret);
213 TMSG(IO,
"write: fd: %d, buf: %p, count: %ld, actual: %ld",
214 fd,
buf, count, ret);
248 TMSG(IO,
"fread: size: %ld, count: %ld, bytes: %ld, actual: %ld",
249 size, count, count*size, ret*size);
283 TMSG(IO,
"fwrite: size: %ld, count: %ld, bytes: %ld, actual: %ld",
284 size, count, count*size, ret*size);
ssize_t write_fn_t(int, const void *, size_t)
ssize_t MONITOR_EXT_WRAP_NAME() write(int fd, const void *buf, size_t count)
int hpcrun_metric_id_write(void)
static void hpcrun_safe_exit(void)
sample_val_t hpcrun_sample_callpath(void *context, int metricId, hpcrun_metricVal_t metricIncr, int skipInner, int isSync, sampling_info_t *data)
#define MONITOR_EXT_WRAP_NAME(name)
static int metric_id_write
size_t MONITOR_EXT_WRAP_NAME() fread(void *ptr, size_t size, size_t count, FILE *stream)
int hpcrun_metric_id_read(void)
static int metric_id_read
ssize_t read_fn_t(int, void *, size_t)
ssize_t MONITOR_EXT_WRAP_NAME() read(int fd, void *buf, size_t count)
size_t MONITOR_EXT_WRAP_NAME() fwrite(const void *ptr, size_t size, size_t count, FILE *stream)
size_t fread_fn_t(void *, size_t, size_t, FILE *)
size_t fwrite_fn_t(const void *, size_t, size_t, FILE *)
static int hpcrun_safe_enter(void)