#include "builtin.h"
#include "perf.h"
#include <errno.h>
#include <unistd.h>
#include <signal.h>
#include <fcntl.h>
#include <poll.h>
#include "debug.h"
#include <subcmd/parse-options.h>
#include <api/fs/tracing_path.h>
#include "evlist.h"
#include "target.h"
#include "cpumap.h"
#include "thread_map.h"
#include "util/config.h"
Go to the source code of this file.
|
static void | sig_handler (int sig __maybe_unused) |
|
static void | ftrace__workload_exec_failed_signal (int signo __maybe_unused, siginfo_t *info __maybe_unused, void *ucontext __maybe_unused) |
|
static int | __write_tracing_file (const char *name, const char *val, bool append) |
|
static int | write_tracing_file (const char *name, const char *val) |
|
static int | append_tracing_file (const char *name, const char *val) |
|
static int | reset_tracing_cpu (void) |
|
static void | reset_tracing_filters (void) |
|
static int | reset_tracing_files (struct perf_ftrace *ftrace __maybe_unused) |
|
static int | set_tracing_pid (struct perf_ftrace *ftrace) |
|
static int | set_tracing_cpumask (struct cpu_map *cpumap) |
|
static int | set_tracing_cpu (struct perf_ftrace *ftrace) |
|
static int | __set_tracing_filter (const char *filter_file, struct list_head *funcs) |
|
static int | set_tracing_filters (struct perf_ftrace *ftrace) |
|
static int | set_tracing_depth (struct perf_ftrace *ftrace) |
|
static int | __cmd_ftrace (struct perf_ftrace *ftrace, int argc, const char **argv) |
|
static int | perf_ftrace_config (const char *var, const char *value, void *cb) |
|
static int | parse_filter_func (const struct option *opt, const char *str, int unset __maybe_unused) |
|
static void | delete_filter_func (struct list_head *head) |
|
int | cmd_ftrace (int argc, const char **argv) |
|
◆ DEFAULT_TRACER
#define DEFAULT_TRACER "function_graph" |
◆ __cmd_ftrace()
static int __cmd_ftrace |
( |
struct perf_ftrace * |
ftrace, |
|
|
int |
argc, |
|
|
const char ** |
argv |
|
) |
| |
|
static |
◆ __set_tracing_filter()
static int __set_tracing_filter |
( |
const char * |
filter_file, |
|
|
struct list_head * |
funcs |
|
) |
| |
|
static |
◆ __write_tracing_file()
static int __write_tracing_file |
( |
const char * |
name, |
|
|
const char * |
val, |
|
|
bool |
append |
|
) |
| |
|
static |
◆ append_tracing_file()
static int append_tracing_file |
( |
const char * |
name, |
|
|
const char * |
val |
|
) |
| |
|
static |
◆ cmd_ftrace()
int cmd_ftrace |
( |
int |
argc, |
|
|
const char ** |
argv |
|
) |
| |
◆ delete_filter_func()
static void delete_filter_func |
( |
struct list_head * |
head | ) |
|
|
static |
◆ ftrace__workload_exec_failed_signal()
static void ftrace__workload_exec_failed_signal |
( |
int signo |
__maybe_unused, |
|
|
siginfo_t *info |
__maybe_unused, |
|
|
void *ucontext |
__maybe_unused |
|
) |
| |
|
static |
◆ parse_filter_func()
static int parse_filter_func |
( |
const struct option * |
opt, |
|
|
const char * |
str, |
|
|
int unset |
__maybe_unused |
|
) |
| |
|
static |
◆ perf_ftrace_config()
static int perf_ftrace_config |
( |
const char * |
var, |
|
|
const char * |
value, |
|
|
void * |
cb |
|
) |
| |
|
static |
◆ reset_tracing_cpu()
static int reset_tracing_cpu |
( |
void |
| ) |
|
|
static |
◆ reset_tracing_files()
static int reset_tracing_files |
( |
struct perf_ftrace *ftrace |
__maybe_unused | ) |
|
|
static |
◆ reset_tracing_filters()
static void reset_tracing_filters |
( |
void |
| ) |
|
|
static |
◆ set_tracing_cpu()
static int set_tracing_cpu |
( |
struct perf_ftrace * |
ftrace | ) |
|
|
static |
◆ set_tracing_cpumask()
static int set_tracing_cpumask |
( |
struct cpu_map * |
cpumap | ) |
|
|
static |
◆ set_tracing_depth()
static int set_tracing_depth |
( |
struct perf_ftrace * |
ftrace | ) |
|
|
static |
◆ set_tracing_filters()
static int set_tracing_filters |
( |
struct perf_ftrace * |
ftrace | ) |
|
|
static |
◆ set_tracing_pid()
static int set_tracing_pid |
( |
struct perf_ftrace * |
ftrace | ) |
|
|
static |
◆ sig_handler()
static void sig_handler |
( |
int sig |
__maybe_unused | ) |
|
|
static |
◆ write_tracing_file()
static int write_tracing_file |
( |
const char * |
name, |
|
|
const char * |
val |
|
) |
| |
|
static |
◆ done