17 #include <vpp/app/version.h> 21 " built by " VPP_BUILD_USER
" on " VPP_BUILD_HOST
" at " VPP_BUILD_DATE;
24 #if defined(__INTEL_COMPILER) 27 "icc " _(__INTEL_COMPILER)
" (" __VERSION__
")";
30 #elif defined(__clang__) 31 "Clang/LLVM " __clang_version__;
32 #elif defined (__GNUC__) 45 #define _(a,b,c) vlib_cli_output (vm, "%-25s " b, a ":", c); 46 _(
"Version",
"%s",
"v" VPP_BUILD_VER);
47 _(
"Compiled by",
"%s", VPP_BUILD_USER);
48 _(
"Compile host",
"%s", VPP_BUILD_HOST);
49 _(
"Compile date",
"%s", VPP_BUILD_DATE);
50 _(
"Compile location",
"%s", VPP_BUILD_TOPDIR);
52 _(
"Current PID",
"%d", getpid ());
62 .path =
"show version",
63 .short_help =
"show version information",
71 return VPP_BUILD_TOPDIR;
83 return VPP_BUILD_DATE;
static char * vpe_compiler
static 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,...)