Linux Perf
builtin-data.c File Reference
#include <linux/compiler.h>
#include "builtin.h"
#include "perf.h"
#include "debug.h"
#include <subcmd/parse-options.h>
#include "data-convert.h"
#include "data-convert-bt.h"
Include dependency graph for builtin-data.c:

Go to the source code of this file.

Classes

struct  data_cmd
 

Macros

#define for_each_cmd(cmd)   for (cmd = data_cmds; cmd && cmd->name; cmd++)
 

Typedefs

typedef int(* data_cmd_fn_t) (int argc, const char **argv)
 

Functions

static void print_usage (void)
 
static int cmd_data_convert (int argc, const char **argv)
 
int cmd_data (int argc, const char **argv)
 

Variables

static struct data_cmd data_cmds []
 
static const struct option data_options []
 
static const char *const data_subcommands [] = { "convert", NULL }
 
static const char * data_usage []
 
static const char *const data_convert_usage []
 

Macro Definition Documentation

◆ for_each_cmd

#define for_each_cmd (   cmd)    for (cmd = data_cmds; cmd && cmd->name; cmd++)

Definition at line 20 of file builtin-data.c.

Typedef Documentation

◆ data_cmd_fn_t

typedef int(* data_cmd_fn_t) (int argc, const char **argv)

Definition at line 10 of file builtin-data.c.

Function Documentation

◆ cmd_data()

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

Definition at line 101 of file builtin-data.c.

Here is the call graph for this function:

◆ cmd_data_convert()

static int cmd_data_convert ( int  argc,
const char **  argv 
)
static

Definition at line 54 of file builtin-data.c.

Here is the call graph for this function:

◆ print_usage()

static void print_usage ( void  )
static

Definition at line 34 of file builtin-data.c.

Variable Documentation

◆ data_cmds

static struct data_cmd data_cmds
static
Initial value:
= {
{ "convert", "converts data file between formats", cmd_data_convert },
{ .name = NULL, },
}
static int cmd_data_convert(int argc, const char **argv)
Definition: builtin-data.c:54

Definition at line 18 of file builtin-data.c.

◆ data_convert_usage

const char* const data_convert_usage[]
static
Initial value:
= {
"perf data convert [<options>]",
NULL
}

Definition at line 49 of file builtin-data.c.

◆ data_options

const struct option data_options[]
static
Initial value:
= {
}

Definition at line 23 of file builtin-data.c.

◆ data_subcommands

const char* const data_subcommands[] = { "convert", NULL }
static

Definition at line 27 of file builtin-data.c.

◆ data_usage

const char* data_usage[]
static
Initial value:
= {
"perf data [<common options>] <command> [<options>]",
NULL
}

Definition at line 29 of file builtin-data.c.