aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-gru/grutables.h
diff options
context:
space:
mode:
authorJack Steiner <steiner@sgi.com>2009-04-02 19:59:06 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-02 22:05:06 -0400
commite56484da3aa550dace96cbf1202446231471d7e1 (patch)
tree547f067876c0610c989a268ce0b19ef6986ee302 /drivers/misc/sgi-gru/grutables.h
parenta24e5e1caf4875bbe09f328b5f4daef6d25ebcc4 (diff)
sgi-gru: add statistics to the GRU context management functions
Add statistics to the GRU context management functions. Signed-off-by: Jack Steiner <steiner@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc/sgi-gru/grutables.h')
-rw-r--r--drivers/misc/sgi-gru/grutables.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/misc/sgi-gru/grutables.h b/drivers/misc/sgi-gru/grutables.h
index 378a0894198e..685db88cc475 100644
--- a/drivers/misc/sgi-gru/grutables.h
+++ b/drivers/misc/sgi-gru/grutables.h
@@ -242,6 +242,14 @@ struct gru_stats_s {
242enum mcs_op {cchop_allocate, cchop_start, cchop_interrupt, cchop_interrupt_sync, 242enum mcs_op {cchop_allocate, cchop_start, cchop_interrupt, cchop_interrupt_sync,
243 cchop_deallocate, tghop_invalidate, mcsop_last}; 243 cchop_deallocate, tghop_invalidate, mcsop_last};
244 244
245struct mcs_op_statistic {
246 atomic_long_t count;
247 atomic_long_t total;
248 unsigned long max;
249};
250
251extern struct mcs_op_statistic mcs_op_statistics[mcsop_last];
252
245#define OPT_DPRINT 1 253#define OPT_DPRINT 1
246#define OPT_STATS 2 254#define OPT_STATS 2
247#define GRU_QUICKLOOK 4 255#define GRU_QUICKLOOK 4