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);
61 _(
"Current PID",
"%d", getpid ());
63 _(
"DPDK Version",
"%s", rte_version ());
75 .path =
"show version",
76 .short_help =
"show version information",
84 return VPP_BUILD_TOPDIR;
96 return VPP_BUILD_DATE;
foreach_x86_64_flags format_function_t format_cpu_uarch
static char * vpe_compiler
static char * vpe_version_string
format_function_t format_cpu_flags
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)
VLIB_CLI_COMMAND(set_interface_ip_source_and_port_range_check_command, static)
char * vpe_api_get_build_date(void)
format_function_t format_cpu_model_name