Linux Perf
builtin-ftrace.c File Reference
#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"
Include dependency graph for builtin-ftrace.c:

Go to the source code of this file.

Classes

struct  perf_ftrace
 
struct  filter_entry
 

Macros

#define DEFAULT_TRACER   "function_graph"
 

Functions

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)
 

Variables

static bool done
 

Macro Definition Documentation

◆ DEFAULT_TRACER

#define DEFAULT_TRACER   "function_graph"

Definition at line 28 of file builtin-ftrace.c.

Function Documentation

◆ __cmd_ftrace()

static int __cmd_ftrace ( struct perf_ftrace ftrace,
int  argc,
const char **  argv 
)
static

Definition at line 276 of file builtin-ftrace.c.

Here is the call graph for this function:

◆ __set_tracing_filter()

static int __set_tracing_filter ( const char *  filter_file,
struct list_head *  funcs 
)
static

Definition at line 214 of file builtin-ftrace.c.

Here is the call graph for this function:

◆ __write_tracing_file()

static int __write_tracing_file ( const char *  name,
const char *  val,
bool  append 
)
static

Definition at line 68 of file builtin-ftrace.c.

Here is the call graph for this function:

◆ append_tracing_file()

static int append_tracing_file ( const char *  name,
const char *  val 
)
static

Definition at line 123 of file builtin-ftrace.c.

Here is the call graph for this function:

◆ cmd_ftrace()

int cmd_ftrace ( int  argc,
const char **  argv 
)

Definition at line 440 of file builtin-ftrace.c.

Here is the call graph for this function:

◆ delete_filter_func()

static void delete_filter_func ( struct list_head *  head)
static

Definition at line 430 of file builtin-ftrace.c.

Here is the call graph for this function:

◆ 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

Definition at line 60 of file builtin-ftrace.c.

◆ parse_filter_func()

static int parse_filter_func ( const struct option *  opt,
const char *  str,
int unset  __maybe_unused 
)
static

Definition at line 414 of file builtin-ftrace.c.

Here is the call graph for this function:

◆ perf_ftrace_config()

static int perf_ftrace_config ( const char *  var,
const char *  value,
void *  cb 
)
static

Definition at line 394 of file builtin-ftrace.c.

◆ reset_tracing_cpu()

static int reset_tracing_cpu ( void  )
static

Definition at line 204 of file builtin-ftrace.c.

Here is the call graph for this function:

◆ reset_tracing_files()

static int reset_tracing_files ( struct perf_ftrace *ftrace  __maybe_unused)
static

Definition at line 131 of file builtin-ftrace.c.

Here is the call graph for this function:

◆ reset_tracing_filters()

static void reset_tracing_filters ( void  )
static

Definition at line 248 of file builtin-ftrace.c.

Here is the call graph for this function:

◆ set_tracing_cpu()

static int set_tracing_cpu ( struct perf_ftrace ftrace)
static

Definition at line 194 of file builtin-ftrace.c.

Here is the call graph for this function:

◆ set_tracing_cpumask()

static int set_tracing_cpumask ( struct cpu_map cpumap)
static

Definition at line 169 of file builtin-ftrace.c.

Here is the call graph for this function:

◆ set_tracing_depth()

static int set_tracing_depth ( struct perf_ftrace ftrace)
static

Definition at line 256 of file builtin-ftrace.c.

Here is the call graph for this function:

◆ set_tracing_filters()

static int set_tracing_filters ( struct perf_ftrace ftrace)
static

Definition at line 226 of file builtin-ftrace.c.

Here is the call graph for this function:

◆ set_tracing_pid()

static int set_tracing_pid ( struct perf_ftrace ftrace)
static

Definition at line 152 of file builtin-ftrace.c.

Here is the call graph for this function:

◆ sig_handler()

static void sig_handler ( int sig  __maybe_unused)
static

Definition at line 48 of file builtin-ftrace.c.

◆ write_tracing_file()

static int write_tracing_file ( const char *  name,
const char *  val 
)
static

Definition at line 118 of file builtin-ftrace.c.

Here is the call graph for this function:

Variable Documentation

◆ done

bool done
static

Definition at line 46 of file builtin-ftrace.c.