HPCToolkit
messages-sync.c File Reference
#include <fcntl.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdbool.h>
#include "disabled.h"
#include "fname_max.h"
#include "files.h"
#include "name.h"
#include "rank.h"
#include "thread_data.h"
#include "thread_use.h"
#include "monitor.h"
#include <messages/debug-flag.h>
#include <messages/messages.h>
#include <messages/messages.i>
#include <messages/fmt.h>
Include dependency graph for messages-sync.c:

Go to the source code of this file.

Functions

void messages_init ()
 
void messages_logfile_create ()
 
void messages_fini (void)
 
void hpcrun_exit_on_error (int ret, int ret_expected, const char *fmt,...)
 
void hpcrun_abort_w_info (void(*info)(void), const char *fmt,...)
 
void hpcrun_stderr_log_msg (bool copy_to_log, const char *fmt,...)
 
void messages_donothing (void)
 
int messages_logfile_fd (void)
 
int hpcrun_below_pmsg_threshold (void)
 
void hpcrun_up_pmsg_count (void)
 

Variables

FILE * log_file
 
static int global_msg_count = 0
 
static int const threshold = 500
 
static int log_file_fd = 2
 

Function Documentation

◆ hpcrun_abort_w_info()

void hpcrun_abort_w_info ( void(*)(void)  info,
const char *  fmt,
  ... 
)

Definition at line 206 of file messages-sync.c.

Here is the call graph for this function:

◆ hpcrun_below_pmsg_threshold()

int hpcrun_below_pmsg_threshold ( void  )

Definition at line 270 of file messages-sync.c.

Here is the caller graph for this function:

◆ hpcrun_exit_on_error()

void hpcrun_exit_on_error ( int  ret,
int  ret_expected,
const char *  fmt,
  ... 
)

Definition at line 193 of file messages-sync.c.

Here is the call graph for this function:

◆ hpcrun_stderr_log_msg()

void hpcrun_stderr_log_msg ( bool  copy_to_log,
const char *  fmt,
  ... 
)

Definition at line 233 of file messages-sync.c.

Here is the call graph for this function:

◆ hpcrun_up_pmsg_count()

void hpcrun_up_pmsg_count ( void  )

Definition at line 277 of file messages-sync.c.

Here is the caller graph for this function:

◆ messages_donothing()

void messages_donothing ( void  )

Definition at line 257 of file messages-sync.c.

◆ messages_fini()

void messages_fini ( void  )

Definition at line 167 of file messages-sync.c.

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

◆ messages_init()

void messages_init ( )

Definition at line 134 of file messages-sync.c.

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

◆ messages_logfile_create()

void messages_logfile_create ( )

Definition at line 147 of file messages-sync.c.

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

◆ messages_logfile_fd()

int messages_logfile_fd ( void  )

Definition at line 263 of file messages-sync.c.

Here is the caller graph for this function:

Variable Documentation

◆ global_msg_count

int global_msg_count = 0
static

Definition at line 113 of file messages-sync.c.

◆ log_file

FILE* log_file

Definition at line 102 of file messages-sync.c.

◆ log_file_fd

int log_file_fd = 2
static

Definition at line 122 of file messages-sync.c.

◆ threshold

int const threshold = 500
static

Definition at line 120 of file messages-sync.c.