|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
17 #include <vpp/app/version.h>
33 " built by " VPP_BUILD_USER
" on " VPP_BUILD_HOST
" at " VPP_BUILD_DATE;
37 #if defined(__INTEL_COMPILER)
40 "icc " _(__INTEL_COMPILER)
" (" __VERSION__
")";
43 #elif defined(__clang__)
44 "Clang/LLVM " __clang_version__;
45 #elif defined (__GNUC__)
62 char **argv = (
char **)
vm->
argv;
66 if (
unformat (input,
"verbose %=", &verbose, 1))
68 else if (
unformat (input,
"cmdline %=", &cmdline, 1))
76 #define _(a,b,c) vlib_cli_output (vm, "%-25s " b, a ":", c);
77 _(
"Version",
"%s",
"v" VPP_BUILD_VER);
78 _(
"Compiled by",
"%s", VPP_BUILD_USER);
79 _(
"Compile host",
"%s", VPP_BUILD_HOST);
80 _(
"Compile date",
"%s", VPP_BUILD_DATE);
81 _(
"Compile location",
"%s", VPP_BUILD_TOPDIR);
83 _(
"Current PID",
"%d", getpid ());
90 for (
i = 0; argv[
i];
i++)
92 if (strstr (argv[
i],
"{"))
95 if (strstr (argv[
i],
"}"))
99 if ((verbose + cmdline) == 0)
138 .path =
"show version",
139 .short_help =
"show version [verbose] [cmdline]",
149 return VPP_BUILD_TOPDIR;
156 return VPP_BUILD_VER;
163 return VPP_BUILD_DATE;
char * vpe_api_get_build_date(void)
return the build date
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static char * vpe_compiler
The name of the compiler.
char * vpe_api_get_version(void)
Return the image version string.
char * vpe_api_get_build_directory(void)
Return the image build directory name.
sll srl srl sll sra u16x4 i
#define VLIB_CLI_COMMAND(x,...)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
char * vpe_version_string
The image version string.
static vlib_cli_command_t show_vpe_version_command
(constructor) VLIB_CLI_COMMAND (show_vpe_version_command)
static clib_error_t * show_vpe_version_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Display image version info, a debug CLI command function.