17 #include <app/version.h> 20 #include <rte_version.h> 27 " built by " VPP_BUILD_USER
29 " at " VPP_BUILD_DATE;
32 #if defined(__INTEL_COMPILER) 35 "icc " _(__INTEL_COMPILER)
" (" __VERSION__
")";
38 #elif defined(__clang__) 39 "Clang/LLVM " __clang_version__;
40 #elif defined (__GNUC__) 53 #define _(a,b,c) vlib_cli_output (vm, "%-25s " b, a ":", c); 54 _(
"Version",
"%s",
"v" VPP_BUILD_VER);
55 _(
"Compiled by",
"%s", VPP_BUILD_USER);
56 _(
"Compile host",
"%s", VPP_BUILD_HOST);
57 _(
"Compile date",
"%s", VPP_BUILD_DATE);
58 _(
"Compile location",
"%s", VPP_BUILD_TOPDIR);
62 _(
"Current PID",
"%d", getpid());
64 _(
"DPDK Version",
"%s", rte_version());
75 .path =
"show version",
76 .short_help =
"show version information",
82 return VPP_BUILD_TOPDIR;
91 return VPP_BUILD_DATE;
static char * vpe_compiler
static char * vpe_version_string
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,...)
format_function_t format_cpu_uarch
char * vpe_api_get_build_date(void)
format_function_t format_cpu_model_name