17 #include <app/version.h> 20 #include <rte_version.h> 27 " built by " VPP_BUILD_USER
" on " VPP_BUILD_HOST
" at " VPP_BUILD_DATE;
30 #if defined(__INTEL_COMPILER) 33 "icc " _(__INTEL_COMPILER)
" (" __VERSION__
")";
36 #elif defined(__clang__) 37 "Clang/LLVM " __clang_version__;
38 #elif defined (__GNUC__) 51 #define _(a,b,c) vlib_cli_output (vm, "%-25s " b, a ":", c); 52 _(
"Version",
"%s",
"v" VPP_BUILD_VER);
53 _(
"Compiled by",
"%s", VPP_BUILD_USER);
54 _(
"Compile host",
"%s", VPP_BUILD_HOST);
55 _(
"Compile date",
"%s", VPP_BUILD_DATE);
56 _(
"Compile location",
"%s", VPP_BUILD_TOPDIR);
58 _(
"Current PID",
"%d", getpid ());
60 _(
"DPDK Version",
"%s", rte_version ());
72 .path =
"show version",
73 .short_help =
"show version information",
81 return VPP_BUILD_TOPDIR;
93 return VPP_BUILD_DATE;
static char * vpe_compiler
static char * vpe_version_string
dpdk_config_main_t dpdk_config_main
char * vpe_api_get_version(void)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
static clib_error_t * show_vpe_version_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
char * vpe_api_get_build_directory(void)
#define VLIB_CLI_COMMAND(x,...)
char * vpe_api_get_build_date(void)