Merge pull request #354 from robertbaldyga/multistream-seq-cutoff
Introduce multi-stream seqential cutoff
This commit is contained in:
21
inc/ocf_debug.h
Normal file
21
inc/ocf_debug.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright(c) 2012-2018 Intel Corporation
|
||||
* SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
*/
|
||||
|
||||
#ifndef __OCF_DEBUG_H__
|
||||
#define __OCF_DEBUG_H__
|
||||
|
||||
struct ocf_dbg_seq_cutoff_status {
|
||||
struct {
|
||||
uint64_t last;
|
||||
uint64_t bytes;
|
||||
uint32_t rw : 1;
|
||||
uint32_t active : 1;
|
||||
} streams[OCF_SEQ_CUTOFF_MAX_STREAMS];
|
||||
};
|
||||
|
||||
void ocf_dbg_get_seq_cutoff_status(ocf_core_t core,
|
||||
struct ocf_dbg_seq_cutoff_status *status);
|
||||
|
||||
#endif /* __OCF_DEBUG_H__ */
|
||||
@@ -175,6 +175,8 @@ typedef enum {
|
||||
/*!< Current cache mode of given cache instance */
|
||||
} ocf_cache_mode_t;
|
||||
|
||||
#define OCF_SEQ_CUTOFF_MAX_STREAMS 256
|
||||
|
||||
typedef enum {
|
||||
ocf_seq_cutoff_policy_always = 0,
|
||||
/*!< Sequential cutoff always on */
|
||||
|
||||
Reference in New Issue
Block a user