Skip to content

count: Employ new code-snippet scheme (cont.)

Akira Yokosawa perfbook 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5count: Employ new scheme for snippet of count_end and count_tstatCodeSamples/count/count_end.c CodeSamples/count/count_tstat.c count/count.tex+68 -1360 replies
2/5count: Fix uses of READ/WRITE_ONCE()s in count_end and count_tstatCodeSamples/count/count_end.c CodeSamples/count/count_tstat.c+7 -90 replies
3/5count: Tweak counttorture.h to avoid segfaultCodeSamples/count/count_tstat.c CodeSamples/count/counttorture.h count/count.tex+22 -60 replies
4/5count: Employ new scheme for snippet of count_limCodeSamples/count/count_lim.c count/count.tex+192 -2490 replies
5/5count: Fix uses of READ/WRITE_ONCE() in count_limCodeSamples/count/count_lim.c+3 -30 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/5] count: Employ new code-snippet scheme (cont.)

Hi Paul,

This is the continuation of changes to snippets in the "count" chapter.

To help your review of the changes regarding READ_ONCE()/WRITE_ONCE(), I split the patches to the ones just applying the scheme and the ones modifying READ_ONCE()/WRITE_ONCE().

Note on patch #3: It fixes the segfault observed in count_tstat. However, I'm not sure if you want to take it or not. The fail can be thought of as a Quick Quiz within the Answer to the Quick Quiz. So keeping it as is would also be reasonable.

Thanks, Akira
--
Akira Yokosawa (5):
count: Employ new scheme for snippet of count_end and count_tstat
count: Fix uses of READ/WRITE_ONCE()s in count_end and count_tstat
count: Tweak counttorture.h to avoid segfault
count: Employ new scheme for snippet of count_lim
count: Fix uses of READ/WRITE_ONCE() in count_lim

 CodeSamples/count/count_end.c    |  53 ++---
 CodeSamples/count/count_lim.c    | 147 +++++++------
 CodeSamples/count/count_tstat.c  |  27 +--
 CodeSamples/count/counttorture.h |  21 +-
 count/count.tex                  | 437 +++++++++++++--------------------------
 5 files changed, 287 insertions(+), 398 deletions(-)
Signature · 1 line
2.7.4