X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blobdiff_plain;f=src%2Fvpp%2Fapi%2Fvpe.api;h=bd6b9d5638fdee9dc2f1e3b0df15aa92a739c043;hp=735b31d3faae275d12e57149b185ddab9a774c5a;hb=03f1af23b;hpb=1d6d9f021c5a169dedca55b46451ab54728e3ee8 diff --git a/src/vpp/api/vpe.api b/src/vpp/api/vpe.api index 735b31d3faa..bd6b9d5638f 100644 --- a/src/vpp/api/vpe.api +++ b/src/vpp/api/vpe.api @@ -19,7 +19,7 @@ called through a shared memory interface. */ -option version = "1.1.0"; +option version = "1.3.0"; /* * Note: API placement cleanup in progress @@ -283,6 +283,55 @@ define get_next_index_reply u32 next_index; }; +enum log_level { + VPE_API_LOG_LEVEL_EMERG = 0, /* emerg */ + VPE_API_LOG_LEVEL_ALERT = 1, /* alert */ + VPE_API_LOG_LEVEL_CRIT = 2, /* crit */ + VPE_API_LOG_LEVEL_ERR = 3, /* err */ + VPE_API_LOG_LEVEL_WARNING = 4, /* warn */ + VPE_API_LOG_LEVEL_NOTICE = 5, /* notice */ + VPE_API_LOG_LEVEL_INFO = 6, /* info */ + VPE_API_LOG_LEVEL_DEBUG = 7, /* debug */ + VPE_API_LOG_LEVEL_DISABLED = 8, /* disabled */ +}; + +define log_dump { + u32 client_index; + u32 context; + f64 start_timestamp; +}; + +define log_details { + u32 context; + f64 timestamp_ticks; + vl_api_log_level_t level; + string timestamp [limit=24]; + string msg_class [limit=32]; + string message [limit=256]; +}; + +/** \brief Show the current system timestamp. + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request +*/ +define show_vpe_system_time_ticks +{ + u32 client_index; + u32 context; +}; + +/** \brief Reply for show vpe system time ticks. + @param context - sender context which was passed in the request + @param retval - return value + @param vpe_system_time_ticks - the time in ticks of the host system. +*/ +define show_vpe_system_time_ticks_reply +{ + u32 context; + i32 retval; + f64 vpe_system_time_ticks; +}; + /* * Local Variables: * eval: (c-set-style "gnu")