17 #include <vpp/app/version.h> 23 " built by " VPP_BUILD_USER
" on " VPP_BUILD_HOST
" at " VPP_BUILD_DATE;
26 #if defined(__INTEL_COMPILER) 29 "icc " _(__INTEL_COMPILER)
" (" __VERSION__
")";
32 #elif defined(__clang__) 33 "Clang/LLVM " __clang_version__;
34 #elif defined (__GNUC__) 47 #define _(a,b,c) vlib_cli_output (vm, "%-25s " b, a ":", c); 48 _(
"Version",
"%s",
"v" VPP_BUILD_VER);
49 _(
"Compiled by",
"%s", VPP_BUILD_USER);
50 _(
"Compile host",
"%s", VPP_BUILD_HOST);
51 _(
"Compile date",
"%s", VPP_BUILD_DATE);
52 _(
"Compile location",
"%s", VPP_BUILD_TOPDIR);
54 _(
"Current PID",
"%d", getpid ());
64 .path =
"show version",
65 .short_help =
"show version information",
73 return VPP_BUILD_TOPDIR;
85 return VPP_BUILD_DATE;
static char * vpe_compiler
char * vpe_version_string
char * vpe_api_get_version(void)
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)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)