diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2018-09-11 20:27:09 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-10-01 09:44:58 +0000 |
commit | 5d64c7868f67749a6c99eb4ee5998b518ab6c71c (patch) | |
tree | 57ce487477ddb12dddeb21340ad875328f2ea5a0 /src/vpp/api/vpe.api | |
parent | 28c142e3dedc0b136003f33f67243bf3c1873b71 (diff) |
thread: Add show threads api
Change-Id: I3124238ab4d43bcef5590bad33a4ff0b5d8b7d15
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vpp/api/vpe.api')
-rw-r--r-- | src/vpp/api/vpe.api | 50 |
1 files changed, 49 insertions, 1 deletions
diff --git a/src/vpp/api/vpe.api b/src/vpp/api/vpe.api index 2eb14bc2fd4..488af1727bc 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.0.0"; +option version = "1.1.0"; /* * Note: API placement cleanup in progress @@ -193,6 +193,54 @@ define show_version_reply u8 build_directory[256]; }; + +/** \brief show_threads display the information about vpp + threads running on system along with their process id, + cpu id, physical core and cpu socket. +*/ +define show_threads +{ + u32 client_index; + u32 context; +}; + +/** \brief thread data + @param id - thread index + @param name - thread name i.e. vpp_main or vpp_wk_0 + @param type - thread type i.e. workers or stats + @param pid - thread Process Id + @param cpu_id - thread pinned to cpu. + "CPUs or Logical cores are the number of physical cores times + the number of threads that can run on each core through + the use of hyperthreading." (from unix.stackexchange.com) + @param core - thread pinned to actual physical core. + @param cpu_socket - thread is running on which cpu socket. +*/ +typeonly define thread_data +{ + u32 id; + u8 name[64]; + u8 type[64]; + u32 pid; + u32 cpu_id; + u32 core; + u32 cpu_socket; +}; + +/** \brief show_threads_reply + @param context - returned sender context, to match reply w/ request + @param retval - return code + @param count - number of threads in thread_data array + @param thread_data - array of thread data +*/ +define show_threads_reply +{ + u32 context; + i32 retval; + u32 count; + vl_api_thread_data_t thread_data[count]; +}; + define get_node_graph { u32 client_index; |