Linux Perf
help-unknown-cmd.c File Reference
#include "cache.h"
#include "config.h"
#include <poll.h>
#include <stdio.h>
#include <subcmd/help.h>
#include "../builtin.h"
#include "levenshtein.h"
Include dependency graph for help-unknown-cmd.c:

Go to the source code of this file.

Functions

static int perf_unknown_cmd_config (const char *var, const char *value, void *cb __maybe_unused)
 
static int levenshtein_compare (const void *p1, const void *p2)
 
static int add_cmd_list (struct cmdnames *cmds, struct cmdnames *old)
 
const char * help_unknown_cmd (const char *cmd)
 

Variables

static int autocorrect
 

Function Documentation

◆ add_cmd_list()

static int add_cmd_list ( struct cmdnames *  cmds,
struct cmdnames *  old 
)
static

Definition at line 30 of file help-unknown-cmd.c.

◆ help_unknown_cmd()

const char* help_unknown_cmd ( const char *  cmd)

Definition at line 53 of file help-unknown-cmd.c.

Here is the call graph for this function:

◆ levenshtein_compare()

static int levenshtein_compare ( const void *  p1,
const void *  p2 
)
static

Definition at line 21 of file help-unknown-cmd.c.

◆ perf_unknown_cmd_config()

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

Definition at line 12 of file help-unknown-cmd.c.

Here is the call graph for this function:

Variable Documentation

◆ autocorrect

int autocorrect
static

Definition at line 10 of file help-unknown-cmd.c.