Purge core command
Purge invalidates all cache lines which belongs to given core. It is very usefull feature for tests. Calling purge is possbile with casadm `--script` swtich. Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
@@ -411,6 +411,7 @@ struct kcas_get_cache_param {
|
||||
* 33 * KCAS_IOCTL_GET_CACHE_PARAM * OK *
|
||||
* 34 * KCAS_IOCTL_GET_STATS * OK *
|
||||
* 35 * KCAS_IOCTL_PURGE_CACHE * OK *
|
||||
* 36 * KCAS_IOCTL_PURGE_CORE * OK *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
||||
@@ -505,6 +506,10 @@ struct kcas_get_cache_param {
|
||||
* and invalidate all valid cache lines */
|
||||
#define KCAS_IOCTL_PURGE_CACHE _IOWR(KCAS_IOCTL_MAGIC, 35, struct kcas_flush_cache)
|
||||
|
||||
/* Flush dirty data from running core object
|
||||
* and invalidate all valid cache lines associated with given core. */
|
||||
#define KCAS_IOCTL_PURGE_CORE _IOWR(KCAS_IOCTL_MAGIC, 36, struct kcas_flush_core)
|
||||
|
||||
/**
|
||||
* Extended kernel CAS error codes
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user