Skip to content

RFC lock contention tracking slimmed down

Martin Peschke linux-s390 lkml 1 version In review

Get series with b4
b4 am 1181165602.7133.18.camel@dix

Versions newest first

  1. v1 RFC Latest4 patches 27 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4statistics: no include hell for usersinclude/linux/statistic.h lib/statistic.c+23 -112 replies
2/4statistics: cleanupsdrivers/s390/scsi/zfcp_def.h include/linux/statistic.h lib/statistic.c+100 -1080 replies
3/4statistics: sets of statistics in single fileinclude/linux/statistic.h lib/statistic.c+315 -1760 replies
4/4lock contention tracking slimmed downinclude/linux/lockdep.h kernel/lockdep.c kernel/lockdep_proc.c+76 -37525 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC] [Patch 0/4] lock contention tracking slimmed down

We can save many lines of code in the lock contention tracking patches by using some common code which implements statistics in a generic way.

Data is still gathered per cpu; output goes to debugfs files. Several ideas that went into the lock contention tracking patches can be found in the statistics infrastructure as well.

Please see the last patch for details and for some sample output. The first three patches just prepare the statistics infrastructure for this new use case.

Feel free to pick at any rough edge you want me to smooth out, if you are interested in this approach.

[Patch 1/4] statistics: no include hell for users [Patch 2/4] statistics: cleanups
[Patch 3/4] statistics: sets of statistics in single file [Patch 4/4] lock contention tracking slimmed down

Please mind that the patches are against 2.6.22-rc3-mm1. They don't apply against 2.6.22-rc4-mm1. (The statistics library functions have been dropped, because a couple more users would be nice.)

Ah, and you might need to add CONFIG_STATISTICS to Kconfig of the architecture of your choice (see s390).