#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <stdarg.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <regex.h>
#include <linux/perf_event.h>
#include <hpcrun/messages/messages.h>
#include "perf-util.h"
#include "perf_event_open.h"
#include "sample-sources/display.h"
#include <perfmon/pfmlib.h>
Go to the source code of this file.
◆ EVENT_FATAL_ERROR
#define EVENT_FATAL_ERROR -1 |
◆ EVENT_IS_PROFILABLE
#define EVENT_IS_PROFILABLE 0 |
◆ EVENT_MAY_NOT_PROFILABLE
#define EVENT_MAY_NOT_PROFILABLE 1 |
◆ MAX_EVENT_DESC_CHARS
#define MAX_EVENT_DESC_CHARS 4096 |
◆ MAX_EVENT_NAME_CHARS
#define MAX_EVENT_NAME_CHARS 256 |
◆ create_event()
static int create_event |
( |
uint64_t |
code, |
|
|
uint64_t |
type |
|
) |
| |
|
static |
◆ event_has_pname()
static int event_has_pname |
( |
char * |
s | ) |
|
|
static |
◆ pfmu_fini()
◆ pfmu_getEventAttribute()
int pfmu_getEventAttribute |
( |
const char * |
eventname, |
|
|
struct perf_event_attr * |
event_attr |
|
) |
| |
get the complete perf event attribute for a given pmu
- Returns
- 1 if successful -1 otherwise
Definition at line 313 of file perfmon-util.c.
◆ pfmu_getEventType()
int pfmu_getEventType |
( |
const char * |
eventname, |
|
|
u64 * |
code, |
|
|
u64 * |
type |
|
) |
| |
◆ pfmu_init()
Initializing perfmon return 1 if the initialization passes successfully
Definition at line 377 of file perfmon-util.c.
◆ pfmu_isSupported()
int pfmu_isSupported |
( |
const char * |
eventname | ) |
|
◆ pfmu_showEventList()
int pfmu_showEventList |
( |
| ) |
|
◆ show_event_info()
static int show_event_info |
( |
pfm_event_info_t * |
info | ) |
|
|
static |
◆ show_info()
static int show_info |
( |
char * |
event | ) |
|
|
static |
◆ test_pmu()
static int test_pmu |
( |
char * |
evname | ) |
|
|
static |