Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
thread: Add show threads api
[vpp.git]
/
src
/
vlib
/
threads.h
diff --git
a/src/vlib/threads.h
b/src/vlib/threads.h
index
7de0412
..
71b5d0c
100644
(file)
--- a/
src/vlib/threads.h
+++ b/
src/vlib/threads.h
@@
-108,7
+108,9
@@
typedef struct
volatile u32 *node_reforks_required;
long lwp;
volatile u32 *node_reforks_required;
long lwp;
- int lcore_id;
+ int cpu_id;
+ int core_id;
+ int socket_id;
pthread_t thread_id;
} vlib_worker_thread_t;
pthread_t thread_id;
} vlib_worker_thread_t;
@@
-270,8
+272,8
@@
typedef enum
typedef struct
{
clib_error_t *(*vlib_launch_thread_cb) (void *fp, vlib_worker_thread_t * w,
typedef struct
{
clib_error_t *(*vlib_launch_thread_cb) (void *fp, vlib_worker_thread_t * w,
- unsigned
lcore
_id);
- clib_error_t *(*vlib_thread_set_lcore_cb) (u32 thread, u16
lcore
);
+ unsigned
cpu
_id);
+ clib_error_t *(*vlib_thread_set_lcore_cb) (u32 thread, u16
cpu
);
} vlib_thread_callbacks_t;
typedef struct
} vlib_thread_callbacks_t;
typedef struct