#include <linux/notifier.h>
#include <linux/seq_file.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/cpu.h>
#include <asm/facility.h>
Go to the source code of this file.
|
enum | { CACHE_SCOPE_NOTEXISTS,
CACHE_SCOPE_PRIVATE,
CACHE_SCOPE_SHARED,
CACHE_SCOPE_RESERVED
} |
|
enum | { CACHE_TYPE_SEPARATE,
CACHE_TYPE_DATA,
CACHE_TYPE_INSTRUCTION,
CACHE_TYPE_UNIFIED
} |
|
enum | { EXTRACT_TOPOLOGY,
EXTRACT_LINE_SIZE,
EXTRACT_SIZE,
EXTRACT_ASSOCIATIVITY
} |
|
enum | { CACHE_TI_UNIFIED = 0,
CACHE_TI_DATA = 0,
CACHE_TI_INSTRUCTION
} |
|
|
void | show_cacheinfo (struct seq_file *m) |
|
| DEFINE_CACHE_ATTR (size,"%luK\n", index->cache->size >> 10) |
|
| DEFINE_CACHE_ATTR (coherency_line_size,"%u\n", index->cache->line_size) |
|
| DEFINE_CACHE_ATTR (number_of_sets,"%u\n", index->cache->nr_sets) |
|
| DEFINE_CACHE_ATTR (ways_of_associativity,"%u\n", index->cache->associativity) |
|
| DEFINE_CACHE_ATTR (type,"%s\n", cache_type_string[index->cache->type]) |
|
| DEFINE_CACHE_ATTR (level,"%d\n", index->cache->level) |
|
| device_initcall (cache_init) |
|
#define CACHE_MAX_LEVEL 8 |
#define DEFINE_CACHE_ATTR |
( |
|
_name, |
|
|
|
_format, |
|
|
|
_value |
|
) |
| |
Value:
\
index = kobj_to_cache_index_dir(kobj); \
} \
__ATTR(_name, 0444, cache_##_name##_show,
NULL);
Definition at line 221 of file cache.c.
- Enumerator:
CACHE_SCOPE_NOTEXISTS |
|
CACHE_SCOPE_PRIVATE |
|
CACHE_SCOPE_SHARED |
|
CACHE_SCOPE_RESERVED |
|
Definition at line 39 of file cache.c.
- Enumerator:
CACHE_TYPE_SEPARATE |
|
CACHE_TYPE_DATA |
|
CACHE_TYPE_INSTRUCTION |
|
CACHE_TYPE_UNIFIED |
|
Definition at line 46 of file cache.c.
- Enumerator:
EXTRACT_TOPOLOGY |
|
EXTRACT_LINE_SIZE |
|
EXTRACT_SIZE |
|
EXTRACT_ASSOCIATIVITY |
|
Definition at line 53 of file cache.c.
- Enumerator:
CACHE_TI_UNIFIED |
|
CACHE_TI_DATA |
|
CACHE_TI_INSTRUCTION |
|
Definition at line 60 of file cache.c.
DEFINE_CACHE_ATTR |
( |
coherency_line_size |
, |
|
|
"%u\n" |
, |
|
|
index->cache-> |
line_size |
|
) |
| |
DEFINE_CACHE_ATTR |
( |
number_of_sets |
, |
|
|
"%u\n" |
, |
|
|
index->cache-> |
nr_sets |
|
) |
| |
DEFINE_CACHE_ATTR |
( |
ways_of_associativity |
, |
|
|
"%u\n" |
, |
|
|
index->cache-> |
associativity |
|
) |
| |
DEFINE_CACHE_ATTR |
( |
type |
, |
|
|
"%s\n" |
, |
|
|
cache_type_string |
[index->cache->type] |
|
) |
| |