Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 77301
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Mathieu Segaud <mathieu.segaud@regala.cx>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
slabinfo21_is_slabinfo20.patch patch to have slabtop working again with linux >= 2.6.10 patch Mathieu Segaud 2005-01-09 18:19 0000 702 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 77301 depends on: Show dependency tree
Bug 77301 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-01-09 18:16 0000
Linux kernel version 2.6.10 recently released exhibits slabinfo format version
2.1
so slabtop doesn't work anymore
However, 2.0 and 2.1 formats seem compatible wrt slabinfoXX function.
Trivial patch below solved the problem, however I do not know whether it is the
right way (macros...).

------- Comment #1 From Mathieu Segaud 2005-01-09 18:19:12 0000 -------
Created an attachment (id=48075) [details]
patch to have slabtop working again with linux >= 2.6.10

I find this patch ugly. I guess a better fix could be introduced.
However, it works :)

------- Comment #2 From Robin Johnson 2005-01-09 19:05:14 0000 -------
A better short-term patch is:
-	if (major == 2 && minor == 0)
+	if (major == 2 && minor <= 1)

Until upstream puts out an update that uses the new nodeallocs field.

------- Comment #3 From SpanKY 2005-01-09 19:12:30 0000 -------
be nice if you mentioned the packages these things belong to ;)

------- Comment #4 From SpanKY 2005-01-12 17:21:50 0000 -------
added patch from upstream cvs and released 3.2.4-r1

thanks regala & albert !

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug