#include <sys/utsname.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include "perf.h"
#include "builtin.h"
#include "util/util.h"
#include "util/strlist.h"
#include "util/strfilter.h"
#include "util/symbol.h"
#include "util/debug.h"
#include <subcmd/parse-options.h>
#include "util/probe-finder.h"
#include "util/probe-event.h"
#include "util/probe-file.h"
Go to the source code of this file.
|
static int | parse_probe_event (const char *str) |
|
static int | params_add_filter (const char *str) |
|
static int | set_target (const char *ptr) |
|
static int | parse_probe_event_argv (int argc, const char **argv) |
|
static int | opt_set_target (const struct option *opt, const char *str, int unset __maybe_unused) |
|
static int | opt_set_target_ns (const struct option *opt __maybe_unused, const char *str, int unset __maybe_unused) |
|
static int | opt_add_probe_event (const struct option *opt, const char *str, int unset __maybe_unused) |
|
static int | opt_set_filter_with_command (const struct option *opt, const char *str, int unset) |
|
static int | opt_set_filter (const struct option *opt __maybe_unused, const char *str, int unset __maybe_unused) |
|
static int | init_params (void) |
|
static void | cleanup_params (void) |
|
static void | pr_err_with_code (const char *msg, int err) |
|
static int | perf_add_probe_events (struct perf_probe_event *pevs, int npevs) |
|
static int | del_perf_probe_caches (struct strfilter *filter) |
|
static int | perf_del_probe_events (struct strfilter *filter) |
|
static int | __cmd_probe (int argc, const char **argv) |
|
int | cmd_probe (int argc, const char **argv) |
|
◆ DEFAULT_FUNC_FILTER
#define DEFAULT_FUNC_FILTER "!_*" |
◆ DEFAULT_LIST_FILTER
#define DEFAULT_LIST_FILTER "*" |
◆ DEFAULT_VAR_FILTER
#define DEFAULT_VAR_FILTER "!__k???tab_* & !__crc_*" |
◆ opt_show_lines
#define opt_show_lines NULL |
◆ opt_show_vars
#define opt_show_vars NULL |
◆ PROBEDEF_STR
#define PROBEDEF_STR "[EVENT=]FUNC[+OFF|%return] [[NAME=]ARG ...]" |
◆ set_nobuild
#define set_nobuild |
( |
|
s, |
|
|
|
l, |
|
|
|
c |
|
) |
| set_option_nobuild(options, s, l, "NO_DWARF=1", c) |
◆ __cmd_probe()
static int __cmd_probe |
( |
int |
argc, |
|
|
const char ** |
argv |
|
) |
| |
|
static |
◆ cleanup_params()
static void cleanup_params |
( |
void |
| ) |
|
|
static |
◆ cmd_probe()
int cmd_probe |
( |
int |
argc, |
|
|
const char ** |
argv |
|
) |
| |
◆ del_perf_probe_caches()
static int del_perf_probe_caches |
( |
struct strfilter * |
filter | ) |
|
|
static |
◆ init_params()
static int init_params |
( |
void |
| ) |
|
|
static |
◆ opt_add_probe_event()
static int opt_add_probe_event |
( |
const struct option * |
opt, |
|
|
const char * |
str, |
|
|
int unset |
__maybe_unused |
|
) |
| |
|
static |
◆ opt_set_filter()
static int opt_set_filter |
( |
const struct option *opt |
__maybe_unused, |
|
|
const char * |
str, |
|
|
int unset |
__maybe_unused |
|
) |
| |
|
static |
◆ opt_set_filter_with_command()
static int opt_set_filter_with_command |
( |
const struct option * |
opt, |
|
|
const char * |
str, |
|
|
int |
unset |
|
) |
| |
|
static |
◆ opt_set_target()
static int opt_set_target |
( |
const struct option * |
opt, |
|
|
const char * |
str, |
|
|
int unset |
__maybe_unused |
|
) |
| |
|
static |
◆ opt_set_target_ns()
static int opt_set_target_ns |
( |
const struct option *opt |
__maybe_unused, |
|
|
const char * |
str, |
|
|
int unset |
__maybe_unused |
|
) |
| |
|
static |
◆ params_add_filter()
static int params_add_filter |
( |
const char * |
str | ) |
|
|
static |
◆ parse_probe_event()
static int parse_probe_event |
( |
const char * |
str | ) |
|
|
static |
◆ parse_probe_event_argv()
static int parse_probe_event_argv |
( |
int |
argc, |
|
|
const char ** |
argv |
|
) |
| |
|
static |
◆ perf_add_probe_events()
◆ perf_del_probe_events()
static int perf_del_probe_events |
( |
struct strfilter * |
filter | ) |
|
|
static |
◆ pr_err_with_code()
static void pr_err_with_code |
( |
const char * |
msg, |
|
|
int |
err |
|
) |
| |
|
static |
◆ set_target()
static int set_target |
( |
const char * |
ptr | ) |
|
|
static |
◆ command
◆ events
◆ filter
◆ line_range
◆ list_events
◆ nevents
◆ nsi
◆ params
◆ quiet
◆ target
◆ target_used
◆ uprobes