Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77301 - procps: slabinfo format version change in Linux v2.6.10 caused slabtop failure
Summary: procps: slabinfo format version change in Linux v2.6.10 caused slabtop failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-09 18:16 UTC by Mathieu Segaud
Modified: 2005-01-12 17:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to have slabtop working again with linux >= 2.6.10 (slabinfo21_is_slabinfo20.patch,702 bytes, patch)
2005-01-09 18:19 UTC, Mathieu Segaud
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Segaud 2005-01-09 18:16:11 UTC
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 Mathieu Segaud 2005-01-09 18:19:12 UTC
Created attachment 48075 [details, diff]
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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-01-09 19:05:14 UTC
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 SpanKY gentoo-dev 2005-01-09 19:12:30 UTC
be nice if you mentioned the packages these things belong to ;)
Comment 4 SpanKY gentoo-dev 2005-01-12 17:21:50 UTC
added patch from upstream cvs and released 3.2.4-r1

thanks regala & albert !