Linux Perf
trace-event-scripting.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "../perf.h"
#include "debug.h"
#include "util.h"
#include "trace-event.h"
Include dependency graph for trace-event-scripting.c:

Go to the source code of this file.

Functions

static int flush_script_unsupported (void)
 
static int stop_script_unsupported (void)
 
static void process_event_unsupported (union perf_event *event __maybe_unused, struct perf_sample *sample __maybe_unused, struct perf_evsel *evsel __maybe_unused, struct addr_location *al __maybe_unused)
 
static void print_python_unsupported_msg (void)
 
static int python_start_script_unsupported (const char *script __maybe_unused, int argc __maybe_unused, const char **argv __maybe_unused)
 
static int python_generate_script_unsupported (struct pevent *pevent __maybe_unused, const char *outfile __maybe_unused)
 
static void register_python_scripting (struct scripting_ops *scripting_ops)
 
void setup_python_scripting (void)
 
static void print_perl_unsupported_msg (void)
 
static int perl_start_script_unsupported (const char *script __maybe_unused, int argc __maybe_unused, const char **argv __maybe_unused)
 
static int perl_generate_script_unsupported (struct pevent *pevent __maybe_unused, const char *outfile __maybe_unused)
 
static void register_perl_scripting (struct scripting_ops *scripting_ops)
 
void setup_perl_scripting (void)
 

Variables

struct scripting_contextscripting_context
 
struct scripting_ops python_scripting_unsupported_ops
 
struct scripting_ops perl_scripting_unsupported_ops
 

Function Documentation

◆ flush_script_unsupported()

static int flush_script_unsupported ( void  )
static

Definition at line 34 of file trace-event-scripting.c.

◆ perl_generate_script_unsupported()

static int perl_generate_script_unsupported ( struct pevent *pevent  __maybe_unused,
const char *outfile  __maybe_unused 
)
static

Definition at line 133 of file trace-event-scripting.c.

Here is the call graph for this function:

◆ perl_start_script_unsupported()

static int perl_start_script_unsupported ( const char *script  __maybe_unused,
int argc  __maybe_unused,
const char **argv  __maybe_unused 
)
static

Definition at line 124 of file trace-event-scripting.c.

Here is the call graph for this function:

◆ print_perl_unsupported_msg()

static void print_perl_unsupported_msg ( void  )
static

Definition at line 115 of file trace-event-scripting.c.

◆ print_python_unsupported_msg()

static void print_python_unsupported_msg ( void  )
static

Definition at line 51 of file trace-event-scripting.c.

◆ process_event_unsupported()

static void process_event_unsupported ( union perf_event *event  __maybe_unused,
struct perf_sample *sample  __maybe_unused,
struct perf_evsel *evsel  __maybe_unused,
struct addr_location *al  __maybe_unused 
)
static

Definition at line 44 of file trace-event-scripting.c.

◆ python_generate_script_unsupported()

static int python_generate_script_unsupported ( struct pevent *pevent  __maybe_unused,
const char *outfile  __maybe_unused 
)
static

Definition at line 69 of file trace-event-scripting.c.

Here is the call graph for this function:

◆ python_start_script_unsupported()

static int python_start_script_unsupported ( const char *script  __maybe_unused,
int argc  __maybe_unused,
const char **argv  __maybe_unused 
)
static

Definition at line 60 of file trace-event-scripting.c.

Here is the call graph for this function:

◆ register_perl_scripting()

static void register_perl_scripting ( struct scripting_ops scripting_ops)
static

Definition at line 151 of file trace-event-scripting.c.

Here is the call graph for this function:

◆ register_python_scripting()

static void register_python_scripting ( struct scripting_ops scripting_ops)
static

Definition at line 88 of file trace-event-scripting.c.

Here is the call graph for this function:

◆ setup_perl_scripting()

void setup_perl_scripting ( void  )

Definition at line 165 of file trace-event-scripting.c.

Here is the call graph for this function:

◆ setup_python_scripting()

void setup_python_scripting ( void  )

Definition at line 102 of file trace-event-scripting.c.

Here is the call graph for this function:

◆ stop_script_unsupported()

static int stop_script_unsupported ( void  )
static

Definition at line 39 of file trace-event-scripting.c.

Variable Documentation

◆ perl_scripting_unsupported_ops

struct scripting_ops perl_scripting_unsupported_ops
Initial value:
= {
.name = "Perl",
.flush_script = flush_script_unsupported,
.stop_script = stop_script_unsupported,
.process_event = process_event_unsupported,
}
static int perl_start_script_unsupported(const char *script __maybe_unused, int argc __maybe_unused, const char **argv __maybe_unused)
static int stop_script_unsupported(void)
static int flush_script_unsupported(void)
static int perl_generate_script_unsupported(struct pevent *pevent __maybe_unused, const char *outfile __maybe_unused)
static void process_event_unsupported(union perf_event *event __maybe_unused, struct perf_sample *sample __maybe_unused, struct perf_evsel *evsel __maybe_unused, struct addr_location *al __maybe_unused)

Definition at line 142 of file trace-event-scripting.c.

◆ python_scripting_unsupported_ops

struct scripting_ops python_scripting_unsupported_ops
Initial value:
= {
.name = "Python",
.flush_script = flush_script_unsupported,
.stop_script = stop_script_unsupported,
.process_event = process_event_unsupported,
}
static int python_start_script_unsupported(const char *script __maybe_unused, int argc __maybe_unused, const char **argv __maybe_unused)
static int stop_script_unsupported(void)
static int flush_script_unsupported(void)
static void process_event_unsupported(union perf_event *event __maybe_unused, struct perf_sample *sample __maybe_unused, struct perf_evsel *evsel __maybe_unused, struct addr_location *al __maybe_unused)
static int python_generate_script_unsupported(struct pevent *pevent __maybe_unused, const char *outfile __maybe_unused)

Definition at line 79 of file trace-event-scripting.c.

◆ scripting_context

Definition at line 32 of file trace-event-scripting.c.