Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16825
b: refs/heads/master
c: 85289f9
h: refs/heads/master
i:
  16823: d55dfaa
v: v3
  • Loading branch information
Pekka Enberg authored and Linus Torvalds committed Jan 9, 2006
1 parent c4a9f0f commit 636f114
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f9f7500521b25dbf1aba476b81230489ad8e2c4b
refs/heads/master: 85289f98ddc13f6cea82c59d6ff78f9d205dfccc
45 changes: 25 additions & 20 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -3364,32 +3364,37 @@ static void cache_reap(void *unused)

#ifdef CONFIG_PROC_FS

static void *s_start(struct seq_file *m, loff_t *pos)
static void print_slabinfo_header(struct seq_file *m)
{
loff_t n = *pos;
struct list_head *p;

down(&cache_chain_sem);
if (!n) {
/*
* Output format version, so at least we can change it
* without _too_ many complaints.
*/
/*
* Output format version, so at least we can change it
* without _too_ many complaints.
*/
#if STATS
seq_puts(m, "slabinfo - version: 2.1 (statistics)\n");
seq_puts(m, "slabinfo - version: 2.1 (statistics)\n");
#else
seq_puts(m, "slabinfo - version: 2.1\n");
seq_puts(m, "slabinfo - version: 2.1\n");
#endif
seq_puts(m, "# name <active_objs> <num_objs> <objsize> <objperslab> <pagesperslab>");
seq_puts(m, " : tunables <limit> <batchcount> <sharedfactor>");
seq_puts(m, " : slabdata <active_slabs> <num_slabs> <sharedavail>");
seq_puts(m, "# name <active_objs> <num_objs> <objsize> "
"<objperslab> <pagesperslab>");
seq_puts(m, " : tunables <limit> <batchcount> <sharedfactor>");
seq_puts(m, " : slabdata <active_slabs> <num_slabs> <sharedavail>");
#if STATS
seq_puts(m, " : globalstat <listallocs> <maxobjs> <grown> <reaped>"
" <error> <maxfreeable> <nodeallocs> <remotefrees>");
seq_puts(m, " : cpustat <allochit> <allocmiss> <freehit> <freemiss>");
seq_puts(m, " : globalstat <listallocs> <maxobjs> <grown> <reaped> "
"<error> <maxfreeable> <nodeallocs> <remotefrees>");
seq_puts(m, " : cpustat <allochit> <allocmiss> <freehit> <freemiss>");
#endif
seq_putc(m, '\n');
}
seq_putc(m, '\n');
}

static void *s_start(struct seq_file *m, loff_t *pos)
{
loff_t n = *pos;
struct list_head *p;

down(&cache_chain_sem);
if (!n)
print_slabinfo_header(m);
p = cache_chain.next;
while (n--) {
p = p->next;
Expand Down

0 comments on commit 636f114

Please sign in to comment.