public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 0/2] Sort module list for /proc/modules
@ 2007-09-06 20:05 Mathieu Desnoyers
  2007-09-06 20:05 ` [patch 1/2] Seq_file add support for sorted list Mathieu Desnoyers
  2007-09-06 20:05 ` [patch 2/2] Sort module list by pointer address to get coherent sleepable seq_file iterators Mathieu Desnoyers
  0 siblings, 2 replies; 8+ messages in thread
From: Mathieu Desnoyers @ 2007-09-06 20:05 UTC (permalink / raw)
  To: akpm, linux-kernel

Hi Andrew,

Here is the updated version of the patchset for 2.6.23-rc4-mm1. It should be
ready to apply. More users (other than module.c and the markers), such as
kallsyms, may also come in a near future.

Mathieu

-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [patch 0/2] Sorted Module List for 2.6.23-rc6-mm1
@ 2007-09-18 21:09 Mathieu Desnoyers
  2007-09-18 21:09 ` [patch 1/2] Seq_file add support for sorted list Mathieu Desnoyers
  0 siblings, 1 reply; 8+ messages in thread
From: Mathieu Desnoyers @ 2007-09-18 21:09 UTC (permalink / raw)
  To: akpm, linux-kernel

Hi Andrew,

Here is the updated sorted module list, required by the linux kernel markers.

It applies to 2.6.23-rc6-mm1 in this order:

seq_file_sorted.patch
module.c-sort-module-list.patch

Mathieu


-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [patch 0/2] Sort module list
@ 2007-09-17 18:43 Mathieu Desnoyers
  2007-09-17 18:43 ` [patch 1/2] Seq_file add support for sorted list Mathieu Desnoyers
  0 siblings, 1 reply; 8+ messages in thread
From: Mathieu Desnoyers @ 2007-09-17 18:43 UTC (permalink / raw)
  To: akpm, linux-kernel

Hi Andrew,

Here is the updated sorted module list, required by the linux kernel markers.

It applies to 2.6.23-rc4-mm1 in this order:

seq_file_sorted.patch
module.c-sort-module-list.patch

Mathieu

-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [patch 0/2] Sort module list for /proc/modules seq file reads
@ 2007-08-27 16:02 Mathieu Desnoyers
  2007-08-27 16:02 ` [patch 1/2] Seq_file add support for sorted list Mathieu Desnoyers
  0 siblings, 1 reply; 8+ messages in thread
From: Mathieu Desnoyers @ 2007-08-27 16:02 UTC (permalink / raw)
  To: akpm, linux-kernel

Hi Andrew,

Here is the updated version of the module list sort for coherent seq file reads.
It includes, in the comments, a byte-by-byte test case that shows the race it
solves. It has been updated since the last post to make sure the byte-by-byte
read works correctly by using "pos" instead of m->private as position indicator.

Only /proc/modules is provided as a user, but it should eventually be used by
other kernel parts, such as kallsyms, to make sure they protect themselves from
list modification while they iterate on them.

It applies to 2.6.23-rc3-mm1.

Mathieu

-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [patch 0/2] Sort module list
@ 2007-08-20 20:26 Mathieu Desnoyers
  2007-08-20 20:26 ` [patch 1/2] Seq_file add support for sorted list Mathieu Desnoyers
  0 siblings, 1 reply; 8+ messages in thread
From: Mathieu Desnoyers @ 2007-08-20 20:26 UTC (permalink / raw)
  To: akpm, linux-kernel

Hi Andrew,

Here is a repost of the "sort module list patch", needed by the Linux Kernel
Markers.

Applies to 2.6.23-rc2-mm2, in the following order:

seq_file_sorted.patch
module.c-sort-module-list.patch

Mathieu

-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [patch 0/2] Sorted seq_file
@ 2007-08-12 15:08 Mathieu Desnoyers
  2007-08-12 15:08 ` [patch 1/2] Seq_file add support for sorted list Mathieu Desnoyers
  0 siblings, 1 reply; 8+ messages in thread
From: Mathieu Desnoyers @ 2007-08-12 15:08 UTC (permalink / raw)
  To: akpm, linux-kernel

Hi Andrew,

I ran in a race regarding seq_file listing of modules. Here is a fix proposed to
get a coherent output even if modules are being unloaded at the same time.

It is needed by the linux kernel markers.

It applies on top of 2.6.23-rc2-mm2 in this order:

seq_file_sorted.patch
module.c-sort-module-list.patch


Mathieu

-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-09-18 21:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-06 20:05 [patch 0/2] Sort module list for /proc/modules Mathieu Desnoyers
2007-09-06 20:05 ` [patch 1/2] Seq_file add support for sorted list Mathieu Desnoyers
2007-09-06 20:05 ` [patch 2/2] Sort module list by pointer address to get coherent sleepable seq_file iterators Mathieu Desnoyers
  -- strict thread matches above, loose matches on Subject: below --
2007-09-18 21:09 [patch 0/2] Sorted Module List for 2.6.23-rc6-mm1 Mathieu Desnoyers
2007-09-18 21:09 ` [patch 1/2] Seq_file add support for sorted list Mathieu Desnoyers
2007-09-17 18:43 [patch 0/2] Sort module list Mathieu Desnoyers
2007-09-17 18:43 ` [patch 1/2] Seq_file add support for sorted list Mathieu Desnoyers
2007-08-27 16:02 [patch 0/2] Sort module list for /proc/modules seq file reads Mathieu Desnoyers
2007-08-27 16:02 ` [patch 1/2] Seq_file add support for sorted list Mathieu Desnoyers
2007-08-20 20:26 [patch 0/2] Sort module list Mathieu Desnoyers
2007-08-20 20:26 ` [patch 1/2] Seq_file add support for sorted list Mathieu Desnoyers
2007-08-12 15:08 [patch 0/2] Sorted seq_file Mathieu Desnoyers
2007-08-12 15:08 ` [patch 1/2] Seq_file add support for sorted list Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox