Skip to content

Further conversion of code snippets (howto, cpu, SMPdesign)

Akira Yokosawa perfbook 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7howto, cpu: Employ new scheme for command/code snippetscpu/overview.tex howto/howto.tex+28 -470 replies
2/7SMPdesign: Employ new scheme for snippet of lockhdeq.cCodeSamples/SMPdesign/lockhdeq.c SMPdesign/partexercises.tex+19 -240 replies
3/7SMPdesign: Employ new scheme for snippet of lockhdeq.c and locktdeq.cCodeSamples/SMPdesign/lockhdeq.c CodeSamples/SMPdesign/locktdeq.c SMPdesign/partexercises.tex+132 -2090 replies
4/7SMPdesign: Employ new scheme for inline snippetsSMPdesign/SMPdesign.tex+170 -1870 replies
5/7SMPdesign: Employ new scheme for snippets from smpalloc.cCodeSamples/SMPdesign/smpalloc.c SMPdesign/SMPdesign.tex+63 -1160 replies
6/7SMPdesign/beyond: Employ new scheme for inline pseudocode snippetsSMPdesign/beyond.tex+168 -1510 replies
7/7CodeSamples/SMPdesign/maze: Substitute {READ/WRITE}_ONCE() for ACCESS_ONCE()CodeSamples/SMPdesign/maze/maze.h CodeSamples/SMPdesign/maze/maze_fg.c CodeSamples/SMPdesign/maze/maze_part.c+24 -180 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] Further conversion of code snippets (howto, cpu, SMPdesign)

Hi Paul,

This is another set of patches converting code snippets to new scheme. Notes on the changes other than simple conversion follow.

Patch #2 contains somewhat ugly hack in lockhdeq.c to suppress "____cacheline_internodealigned_in_smp" in the resulting snippet. I'm afraid it could hurt your eyes.

Patch #5 renames "percpu*" to "perthread*" to respect the names used in actual code.

Patch #6 includes substitution of ACCESS_ONCE -> READ_ONCE.

Patch #7 does the substitution under CodeSamples. It also adds a couple of function prototypes in maze.h.

Thanks, Akira
--
Akira Yokosawa (7):
howto, cpu: Employ new scheme for command/code snippets
SMPdesign: Employ new scheme for snippet of lockhdeq.c
SMPdesign: Employ new scheme for snippet of lockhdeq.c and locktdeq.c
SMPdesign: Employ new scheme for inline snippets
SMPdesign: Employ new scheme for snippets from smpalloc.c SMPdesign/beyond: Employ new scheme for inline pseudocode snippets CodeSamples/SMPdesign/maze: Substitute {READ/WRITE}_ONCE() for
ACCESS_ONCE()

 CodeSamples/SMPdesign/lockhdeq.c       |  53 ++--
 CodeSamples/SMPdesign/locktdeq.c       |  70 ++---
 CodeSamples/SMPdesign/maze/maze.h      |   6 +
 CodeSamples/SMPdesign/maze/maze_fg.c   |  18 +-
 CodeSamples/SMPdesign/maze/maze_part.c |  18 +-
 CodeSamples/SMPdesign/smpalloc.c       |  57 ++--
 SMPdesign/SMPdesign.tex                | 479 ++++++++++++++-------------------
 SMPdesign/beyond.tex                   | 319 +++++++++++-----------
 SMPdesign/partexercises.tex            | 263 ++++++------------
 cpu/overview.tex                       |  15 +-
 howto/howto.tex                        |  60 ++---
 11 files changed, 605 insertions(+), 753 deletions(-)
Signature · 1 line
2.7.4