HPCToolkit
tokenize.c File Reference
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include "tokenize.h"
Include dependency graph for tokenize.c:

Go to the source code of this file.

Macros

#define MIN(a, b)   (((a)<=(b))?(a):(b))
 
#define EVENT_DELIMITER   '@'
 
#define PREFIX_FREQUENCY   'f'
 

Functions

char * start_tok (char *lst)
 
int more_tok (void)
 
char * next_tok (void)
 
int hpcrun_extract_threshold (const char *input_string, long *threshold, long default_value)
 
int hpcrun_extract_ev_thresh (const char *in, int evlen, char *ev, long *th, long def)
 
bool hpcrun_ev_is (const char *candidate, const char *event_name)
 

Variables

static char * tmp
 
static char * tk
 
static char * last
 
static char * sep1 = " ,;"
 

Macro Definition Documentation

◆ EVENT_DELIMITER

#define EVENT_DELIMITER   '@'

Definition at line 60 of file tokenize.c.

◆ MIN

#define MIN (   a,
 
)    (((a)<=(b))?(a):(b))

Definition at line 58 of file tokenize.c.

◆ PREFIX_FREQUENCY

#define PREFIX_FREQUENCY   'f'

Definition at line 61 of file tokenize.c.

Function Documentation

◆ hpcrun_ev_is()

bool hpcrun_ev_is ( const char *  candidate,
const char *  event_name 
)

Definition at line 194 of file tokenize.c.

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

◆ hpcrun_extract_ev_thresh()

int hpcrun_extract_ev_thresh ( const char *  in,
int  evlen,
char *  ev,
long *  th,
long  def 
)

Definition at line 157 of file tokenize.c.

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

◆ hpcrun_extract_threshold()

int hpcrun_extract_threshold ( const char *  input_string,
long *  threshold,
long  default_value 
)

extract the threshold

Definition at line 103 of file tokenize.c.

Here is the caller graph for this function:

◆ more_tok()

int more_tok ( void  )

Definition at line 78 of file tokenize.c.

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

◆ next_tok()

char* next_tok ( void  )

Definition at line 87 of file tokenize.c.

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

◆ start_tok()

char* start_tok ( char *  lst)

Definition at line 70 of file tokenize.c.

Here is the caller graph for this function:

Variable Documentation

◆ last

char* last
static

Definition at line 65 of file tokenize.c.

◆ sep1

char* sep1 = " ,;"
static

Definition at line 67 of file tokenize.c.

◆ tk

char* tk
static

Definition at line 64 of file tokenize.c.

◆ tmp

char* tmp
static

Definition at line 63 of file tokenize.c.