Linux Perf
builtin-help.c File Reference
#include "perf.h"
#include "util/config.h"
#include "builtin.h"
#include <subcmd/exec-cmd.h>
#include "common-cmds.h"
#include <subcmd/parse-options.h>
#include <subcmd/run-command.h>
#include <subcmd/help.h>
#include "util/debug.h"
#include <linux/kernel.h>
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
Include dependency graph for builtin-help.c:

Go to the source code of this file.

Classes

struct  man_viewer_list
 
struct  man_viewer_info_list
 

Enumerations

enum  help_format { HELP_FORMAT_NONE, HELP_FORMAT_MAN, HELP_FORMAT_INFO, HELP_FORMAT_WEB }
 

Functions

static enum help_format parse_help_format (const char *format)
 
static const char * get_man_viewer_info (const char *name)
 
static int check_emacsclient_version (void)
 
static void exec_failed (const char *cmd)
 
static void exec_woman_emacs (const char *path, const char *page)
 
static void exec_man_konqueror (const char *path, const char *page)
 
static void exec_man_man (const char *path, const char *page)
 
static void exec_man_cmd (const char *cmd, const char *page)
 
static void add_man_viewer (const char *name)
 
static int supported_man_viewer (const char *name, size_t len)
 
static void do_add_man_viewer_info (const char *name, size_t len, const char *value)
 
static void unsupported_man_viewer (const char *name, const char *var)
 
static int add_man_viewer_path (const char *name, size_t len, const char *value)
 
static int add_man_viewer_cmd (const char *name, size_t len, const char *value)
 
static int add_man_viewer_info (const char *var, const char *value)
 
static int perf_help_config (const char *var, const char *value, void *cb)
 
void list_common_cmds_help (void)
 
static const char * cmd_to_page (const char *perf_cmd)
 
static void setup_man_path (void)
 
static void exec_viewer (const char *name, const char *page)
 
static int show_man_page (const char *perf_cmd)
 
static int show_info_page (const char *perf_cmd)
 
static int get_html_page_path (char **page_path, const char *page)
 
static void open_html (const char *path)
 
static int show_html_page (const char *perf_cmd)
 
int cmd_help (int argc, const char **argv)
 

Variables

static struct man_viewer_listman_viewer_list
 
static struct man_viewer_info_listman_viewer_info_list
 
static struct cmdnames main_cmds other_cmds
 

Enumeration Type Documentation

◆ help_format

Enumerator
HELP_FORMAT_NONE 
HELP_FORMAT_MAN 
HELP_FORMAT_INFO 
HELP_FORMAT_WEB 

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

Function Documentation

◆ add_man_viewer()

static void add_man_viewer ( const char *  name)
static

Definition at line 184 of file builtin-help.c.

Here is the call graph for this function:

◆ add_man_viewer_cmd()

static int add_man_viewer_cmd ( const char *  name,
size_t  len,
const char *  value 
)
static

Definition at line 232 of file builtin-help.c.

Here is the call graph for this function:

◆ add_man_viewer_info()

static int add_man_viewer_info ( const char *  var,
const char *  value 
)
static

Definition at line 244 of file builtin-help.c.

Here is the call graph for this function:

◆ add_man_viewer_path()

static int add_man_viewer_path ( const char *  name,
size_t  len,
const char *  value 
)
static

Definition at line 220 of file builtin-help.c.

Here is the call graph for this function:

◆ check_emacsclient_version()

static int check_emacsclient_version ( void  )
static

Definition at line 65 of file builtin-help.c.

Here is the call graph for this function:

◆ cmd_help()

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

Definition at line 422 of file builtin-help.c.

Here is the call graph for this function:

◆ cmd_to_page()

static const char* cmd_to_page ( const char *  perf_cmd)
static

Definition at line 311 of file builtin-help.c.

◆ do_add_man_viewer_info()

static void do_add_man_viewer_info ( const char *  name,
size_t  len,
const char *  value 
)
static

Definition at line 202 of file builtin-help.c.

Here is the call graph for this function:

◆ exec_failed()

static void exec_failed ( const char *  cmd)
static

Definition at line 112 of file builtin-help.c.

◆ exec_man_cmd()

static void exec_man_cmd ( const char *  cmd,
const char *  page 
)
static

Definition at line 173 of file builtin-help.c.

Here is the call graph for this function:

◆ exec_man_konqueror()

static void exec_man_konqueror ( const char *  path,
const char *  page 
)
static

Definition at line 134 of file builtin-help.c.

Here is the call graph for this function:

◆ exec_man_man()

static void exec_man_man ( const char *  path,
const char *  page 
)
static

Definition at line 165 of file builtin-help.c.

Here is the call graph for this function:

◆ exec_viewer()

static void exec_viewer ( const char *  name,
const char *  page 
)
static

Definition at line 340 of file builtin-help.c.

Here is the call graph for this function:

◆ exec_woman_emacs()

static void exec_woman_emacs ( const char *  path,
const char *  page 
)
static

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

Here is the call graph for this function:

◆ get_html_page_path()

static int get_html_page_path ( char **  page_path,
const char *  page 
)
static

Definition at line 382 of file builtin-help.c.

Here is the call graph for this function:

◆ get_man_viewer_info()

static const char* get_man_viewer_info ( const char *  name)
static

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

◆ list_common_cmds_help()

void list_common_cmds_help ( void  )

Definition at line 295 of file builtin-help.c.

◆ open_html()

static void open_html ( const char *  path)
static

Definition at line 403 of file builtin-help.c.

◆ parse_help_format()

static enum help_format parse_help_format ( const char *  format)
static

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

◆ perf_help_config()

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

Definition at line 269 of file builtin-help.c.

Here is the call graph for this function:

◆ setup_man_path()

static void setup_man_path ( void  )
static

Definition at line 323 of file builtin-help.c.

Here is the call graph for this function:

◆ show_html_page()

static int show_html_page ( const char *  perf_cmd)
static

Definition at line 409 of file builtin-help.c.

Here is the call graph for this function:

◆ show_info_page()

static int show_info_page ( const char *  perf_cmd)
static

Definition at line 374 of file builtin-help.c.

Here is the call graph for this function:

◆ show_man_page()

static int show_man_page ( const char *  perf_cmd)
static

Definition at line 356 of file builtin-help.c.

Here is the call graph for this function:

◆ supported_man_viewer()

static int supported_man_viewer ( const char *  name,
size_t  len 
)
static

Definition at line 195 of file builtin-help.c.

◆ unsupported_man_viewer()

static void unsupported_man_viewer ( const char *  name,
const char *  var 
)
static

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

Variable Documentation

◆ man_viewer_info_list

◆ man_viewer_list

◆ other_cmds

struct cmdnames main_cmds other_cmds
static

Definition at line 293 of file builtin-help.c.