Linux Perf
builtin-version.c File Reference
#include "builtin.h"
#include "perf.h"
#include "color.h"
#include <linux/compiler.h>
#include <tools/config.h>
#include <stdio.h>
#include <string.h>
#include <subcmd/parse-options.h>
Include dependency graph for builtin-version.c:

Go to the source code of this file.

Classes

struct  version
 

Macros

#define STATUS(__d, __m)
 

Functions

static void on_off_print (const char *status)
 
static void status_print (const char *name, const char *macro, const char *status)
 
static void library_status (void)
 
int cmd_version (int argc, const char **argv)
 

Variables

int version_verbose
 
static struct version version
 
static struct option version_options []
 
static const char *const version_usage []
 

Macro Definition Documentation

◆ STATUS

#define STATUS (   __d,
  __m 
)
Value:
do { \
if (IS_BUILTIN(__d)) \
status_print(#__m, #__d, "on"); \
status_print(#__m, #__d, "OFF"); \
} while (0)
static void status_print(const char *name, const char *macro, const char *status)

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

Function Documentation

◆ cmd_version()

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

Definition at line 83 of file builtin-version.c.

Here is the call graph for this function:

◆ library_status()

static void library_status ( void  )
static

Definition at line 57 of file builtin-version.c.

Here is the call graph for this function:

◆ on_off_print()

static void on_off_print ( const char *  status)
static

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

Here is the call graph for this function:

◆ status_print()

static void status_print ( const char *  name,
const char *  macro,
const char *  status 
)
static

Definition at line 41 of file builtin-version.c.

Here is the call graph for this function:

Variable Documentation

◆ version

struct version version
static

Definition at line 17 of file builtin-version.c.

◆ version_options

struct option version_options[]
static
Initial value:
= {
OPT_BOOLEAN(0, "build-options", &version.build_options,
"display the build options"),
}
bool build_options

Definition at line 19 of file builtin-version.c.

◆ version_usage

const char* const version_usage[]
static
Initial value:
= {
"perf version [<options>]",
NULL
}

Definition at line 24 of file builtin-version.c.

◆ version_verbose

int version_verbose

Definition at line 11 of file builtin-version.c.