#include <errno.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <signal.h>
#include <sys/time.h>
#include <ucontext.h>
#include <monitor.h>
#include "sample_source_obj.h"
#include "common.h"
#include "ss-errno.h"
#include <hpcrun/hpcrun_options.h>
#include <hpcrun/hpcrun_stats.h>
#include <hpcrun/metrics.h>
#include <hpcrun/safe-sampling.h>
#include <hpcrun/sample_event.h>
#include <hpcrun/sample_sources_registered.h>
#include <hpcrun/thread_data.h>
#include <lush/lush-backtrace.h>
#include <messages/messages.h>
#include <utilities/tokenize.h>
#include <utilities/arch/context-pc.h>
#include <unwind/common/unwind.h>
#include <lib/support-lean/timer.h>
#include "ss_obj.h"
Go to the source code of this file.
◆ AUTOMATIC_ITIMER_RESET_MICROSECONDS
#define AUTOMATIC_ITIMER_RESET_MICROSECONDS |
( |
|
x | ) |
(0) |
◆ AUTOMATIC_ITIMER_RESET_SECONDS
#define AUTOMATIC_ITIMER_RESET_SECONDS |
( |
|
x | ) |
(0) |
◆ DEFAULT_THRESHOLD
#define DEFAULT_THRESHOLD 5000L |
◆ HPCRUN_PROFILE_SIGNAL
#define HPCRUN_PROFILE_SIGNAL SIGPROF |
◆ HPCRUN_PROFILE_TIMER
#define HPCRUN_PROFILE_TIMER ITIMER_PROF |
◆ RESET_ITIMER_EACH_SAMPLE
#define RESET_ITIMER_EACH_SAMPLE |
◆ sample_period
◆ SECONDS_PER_HOUR
#define SECONDS_PER_HOUR 3600 |
◆ ss_cls
◆ ss_name
◆ USE_ELAPSED_TIME_FOR_WALLCLOCK
#define USE_ELAPSED_TIME_FOR_WALLCLOCK |
◆ _local_const
Enumerator |
---|
PROC_NAME_LEN | |
ITIMER_EVENT | |
_TST_EVENT | |
Definition at line 148 of file tst.c.
◆ _tst_signal_handler()
static int _tst_signal_handler |
( |
int |
sig, |
|
|
siginfo_t * |
siginfo, |
|
|
void * |
context |
|
) |
| |
|
static |
◆ METHOD_FN() [1/11]
static void METHOD_FN |
( |
init |
| ) |
|
|
static |
◆ METHOD_FN() [2/11]
static void METHOD_FN |
( |
thread_init |
| ) |
|
|
static |
◆ METHOD_FN() [3/11]
static void METHOD_FN |
( |
thread_init_action |
| ) |
|
|
static |
◆ METHOD_FN() [4/11]
static void METHOD_FN |
( |
start |
| ) |
|
|
static |
◆ METHOD_FN() [5/11]
static void METHOD_FN |
( |
thread_fini_action |
| ) |
|
|
static |
◆ METHOD_FN() [6/11]
static void METHOD_FN |
( |
stop |
| ) |
|
|
static |
◆ METHOD_FN() [7/11]
static void METHOD_FN |
( |
shutdown |
| ) |
|
|
static |
◆ METHOD_FN() [8/11]
static bool METHOD_FN |
( |
supports_event |
, |
|
|
const char * |
ev_str |
|
) |
| |
|
static |
◆ METHOD_FN() [9/11]
static void METHOD_FN |
( |
process_event_list |
, |
|
|
int |
lush_metrics |
|
) |
| |
|
static |
◆ METHOD_FN() [10/11]
static void METHOD_FN |
( |
gen_event_set |
, |
|
|
int |
lush_metrics |
|
) |
| |
|
static |
◆ METHOD_FN() [11/11]
static void METHOD_FN |
( |
display_events |
| ) |
|
|
static |
◆ itimer
◆ period
◆ sigset_itimer
◆ zerotimer
const struct itimerval zerotimer |
|
static |
Initial value:= {
.it_interval = {
.tv_sec = 0L,
.tv_usec = 0L
},
.it_value = {
.tv_sec = 0L,
.tv_usec = 0L
}
}
Definition at line 166 of file tst.c.