gru.h (b1864e9a1afef41709886072c6e6248def0386f4) | gru.h (5958ab88f721d312b531d17705fc3ed54102fa05) |
---|---|
1/* 2 * Copyright (c) 2008 Silicon Graphics, Inc. All Rights Reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU Lesser General Public License as published by 6 * the Free Software Foundation; either version 2.1 of the License, or 7 * (at your option) any later version. 8 * --- 39 unchanged lines hidden (view full) --- 48 int total_dsr_bytes; 49 int total_cbr; 50 int total_user_dsr_bytes; 51 int total_user_cbr; 52 int free_user_dsr_bytes; 53 int free_user_cbr; 54}; 55 | 1/* 2 * Copyright (c) 2008 Silicon Graphics, Inc. All Rights Reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU Lesser General Public License as published by 6 * the Free Software Foundation; either version 2.1 of the License, or 7 * (at your option) any later version. 8 * --- 39 unchanged lines hidden (view full) --- 48 int total_dsr_bytes; 49 int total_cbr; 50 int total_user_dsr_bytes; 51 int total_user_cbr; 52 int free_user_dsr_bytes; 53 int free_user_cbr; 54}; 55 |
56/* 57 * Statictics kept for each context. 58 */ 59struct gru_gseg_statistics { 60 unsigned long fmm_tlbmiss; 61 unsigned long upm_tlbmiss; 62 unsigned long tlbdropin; 63 unsigned long context_stolen; 64 unsigned long reserved[10]; 65}; 66 |
|
56/* Flags for GRU options on the gru_create_context() call */ 57/* Select one of the follow 4 options to specify how TLB misses are handled */ 58#define GRU_OPT_MISS_DEFAULT 0x0000 /* Use default mode */ 59#define GRU_OPT_MISS_USER_POLL 0x0001 /* User will poll CB for faults */ 60#define GRU_OPT_MISS_FMM_INTR 0x0002 /* Send interrupt to cpu to 61 handle fault */ 62#define GRU_OPT_MISS_FMM_POLL 0x0003 /* Use system polling thread */ 63#define GRU_OPT_MISS_MASK 0x0003 /* Mask for TLB MISS option */ 64 65 66 67#endif /* __GRU_H__ */ | 67/* Flags for GRU options on the gru_create_context() call */ 68/* Select one of the follow 4 options to specify how TLB misses are handled */ 69#define GRU_OPT_MISS_DEFAULT 0x0000 /* Use default mode */ 70#define GRU_OPT_MISS_USER_POLL 0x0001 /* User will poll CB for faults */ 71#define GRU_OPT_MISS_FMM_INTR 0x0002 /* Send interrupt to cpu to 72 handle fault */ 73#define GRU_OPT_MISS_FMM_POLL 0x0003 /* Use system polling thread */ 74#define GRU_OPT_MISS_MASK 0x0003 /* Mask for TLB MISS option */ 75 76 77 78#endif /* __GRU_H__ */ |