git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal/windows: add missing SPDX license tag
[dpdk.git]
/
lib
/
librte_eal
/
common
/
eal_thread.h
diff --git
a/lib/librte_eal/common/eal_thread.h
b/lib/librte_eal/common/eal_thread.h
index
dc1fc6e
..
4a49117
100644
(file)
--- a/
lib/librte_eal/common/eal_thread.h
+++ b/
lib/librte_eal/common/eal_thread.h
@@
-32,13
+32,15
@@
unsigned eal_cpu_socket_id(unsigned cpu_id);
#define RTE_CPU_AFFINITY_STR_LEN 256
/**
#define RTE_CPU_AFFINITY_STR_LEN 256
/**
- * Dump the c
urrent pthread cpuset
.
+ * Dump the c
puset as a human readable string
.
* This function is private to EAL.
*
* Note:
* If the dump size is greater than the size of given buffer,
* the string will be truncated and with '\0' at the end.
*
* This function is private to EAL.
*
* Note:
* If the dump size is greater than the size of given buffer,
* the string will be truncated and with '\0' at the end.
*
+ * @param cpuset
+ * The CPU affinity object to dump.
* @param str
* The string buffer the cpuset will dump to.
* @param size
* @param str
* The string buffer the cpuset will dump to.
* @param size
@@
-47,6
+49,13
@@
unsigned eal_cpu_socket_id(unsigned cpu_id);
* 0 for success, -1 if truncation happens.
*/
int
* 0 for success, -1 if truncation happens.
*/
int
-eal_thread_dump_affinity(char *str, unsigned size);
+eal_thread_dump_affinity(rte_cpuset_t *cpuset, char *str, unsigned int size);
+
+/**
+ * Dump the current thread cpuset.
+ * This is a wrapper on eal_thread_dump_affinity().
+ */
+int
+eal_thread_dump_current_affinity(char *str, unsigned int size);
#endif /* EAL_THREAD_H */
#endif /* EAL_THREAD_H */