HPCToolkit
|
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <messages/messages.h>
#include <lib/support-lean/OSUtil.h>
#include "sample_prob.h"
Go to the source code of this file.
Macros | |
#define | HPCRUN_SAMPLE_PROB "HPCRUN_PROCESS_FRACTION" |
#define | DEFAULT_PROB 0.1 |
#define | HASH_PRIME 2001001003 |
#define | HASH_GEN 4011 |
Functions | |
static float | string_to_prob (char *str) |
static float | random_hash_prob (void) |
void | hpcrun_sample_prob_init (void) |
int | hpcrun_sample_prob_active (void) |
void | hpcrun_sample_prob_mesg (void) |
Variables | |
static int | is_init = 0 |
static pid_t | orig_pid = 0 |
static int | sample_prob_ans = 1 |
static char * | sample_prob_str = NULL |
static int | prob_str_broken = 0 |
static int | prob_str_mesg = 0 |
#define DEFAULT_PROB 0.1 |
Definition at line 62 of file sample_prob.c.
#define HASH_GEN 4011 |
Definition at line 65 of file sample_prob.c.
#define HASH_PRIME 2001001003 |
Definition at line 64 of file sample_prob.c.
#define HPCRUN_SAMPLE_PROB "HPCRUN_PROCESS_FRACTION" |
Definition at line 61 of file sample_prob.c.
int hpcrun_sample_prob_active | ( | void | ) |
Definition at line 193 of file sample_prob.c.
void hpcrun_sample_prob_init | ( | void | ) |
Definition at line 168 of file sample_prob.c.
void hpcrun_sample_prob_mesg | ( | void | ) |
|
static |
Definition at line 131 of file sample_prob.c.
|
static |
|
static |
Definition at line 67 of file sample_prob.c.
|
static |
Definition at line 68 of file sample_prob.c.
|
static |
Definition at line 72 of file sample_prob.c.
|
static |
Definition at line 73 of file sample_prob.c.
|
static |
Definition at line 69 of file sample_prob.c.
|
static |
Definition at line 71 of file sample_prob.c.