Linux Perf
scripts.c File Reference
#include <elf.h>
#include <inttypes.h>
#include <sys/ttydefaults.h>
#include <string.h>
#include "../../util/sort.h"
#include "../../util/util.h"
#include "../../util/hist.h"
#include "../../util/debug.h"
#include "../../util/symbol.h"
#include "../browser.h"
#include "../helpline.h"
#include "../libslang.h"
Include dependency graph for scripts.c:

Go to the source code of this file.

Classes

struct  script_line
 
struct  perf_script_browser
 

Macros

#define MAX_LINES   2048
 
#define AVERAGE_LINE_LEN   160
 
#define SCRIPT_NAMELEN   128
 
#define SCRIPT_MAX_NO   64
 
#define SCRIPT_FULLPATH_LEN   256
 

Functions

static int list_scripts (char *script_name)
 
static void script_browser__write (struct ui_browser *browser, void *entry, int row)
 
static int script_browser__run (struct perf_script_browser *browser)
 
int script_browse (const char *script_opt)
 

Macro Definition Documentation

◆ AVERAGE_LINE_LEN

#define AVERAGE_LINE_LEN   160

Definition at line 19 of file scripts.c.

◆ MAX_LINES

#define MAX_LINES   2048

Definition at line 16 of file scripts.c.

◆ SCRIPT_FULLPATH_LEN

#define SCRIPT_FULLPATH_LEN   256

Definition at line 41 of file scripts.c.

◆ SCRIPT_MAX_NO

#define SCRIPT_MAX_NO   64

Definition at line 34 of file scripts.c.

◆ SCRIPT_NAMELEN

#define SCRIPT_NAMELEN   128

Definition at line 33 of file scripts.c.

Function Documentation

◆ list_scripts()

static int list_scripts ( char *  script_name)
static

Definition at line 48 of file scripts.c.

Here is the call graph for this function:

◆ script_browse()

int script_browse ( const char *  script_opt)

Definition at line 108 of file scripts.c.

Here is the call graph for this function:

◆ script_browser__run()

static int script_browser__run ( struct perf_script_browser browser)
static

Definition at line 88 of file scripts.c.

Here is the call graph for this function:

◆ script_browser__write()

static void script_browser__write ( struct ui_browser browser,
void *  entry,
int  row 
)
static

Definition at line 76 of file scripts.c.

Here is the call graph for this function: