[PATCH -perfbook] memorder: Shrink ifthen.pdf for -1c and -eb builds

2023-09-09 Thread Akira Yokosawa
ifthen.pdf is tall and using \columnwidth makes it exceed paper height in -1c and -eb builds. .45\textwidth gives reasonable size figures in all layouts. Signed-off-by: Akira Yokosawa --- memorder/memorder.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memorder

[PATCH -perfbook v2] memorder: Shrink ifthen.pdf in -1c and -eb builds

2023-09-10 Thread Akira Yokosawa
ifthen.pdf is tall and using \columnwidth makes it exceed paper height in -1c and -eb builds. .5\onecolumntextwidth (defined in preamble) gives reasonable size figures in all layouts. Signed-off-by: Akira Yokosawa --- v1 -> v2: Use \onecolumntextwidth for smaller figure in -2c builds. P

[PATCH -perfbook] memorder: Shrink Figures 15.1 and 15.2 in 2c builds

2023-09-10 Thread Akira Yokosawa
Figures 15.1 and 15.2 look unnecessarily large in 2c builds. Reduce their widths a bit by using \onecolumntextwidth. This change doesn't affect -1c and -eb builds. Signed-off-by: Akira Yokosawa --- Figure 15.2 is now at the top of page 319. Figure 15.1 still appears in its own page. Twe

[PATCH -perfboof] memorder: Fix word choice (data dependencies --> address dependencies)

2023-09-17 Thread Akira Yokosawa
There remain obsolete word choices of "data dependencies" in section Alpha. It is load-to-load address dependencies that other archs respect. Signed-off-by: Akira Yokosawa --- Hi Paul, I caught them while attempting to add index markers to address/data/control dependency.

[PATCH -perfbook 0/4] memorder: Add index markers

2023-09-22 Thread Akira Yokosawa
s index entries marked with \IXalth{}{}{}. Thanks, Akira -- Akira Yokosawa (4): memorder: Add index markers for 'address/control/data dependency', take 1 memorder: Add index markers for 'address/control/data dependency', take 2 memorder: Add index marker

[PATCH -perfbook 1/4] memorder: Add index markers for 'address/control/data dependency', take 1

2023-09-22 Thread Akira Yokosawa
"see " entries as follows: - Address dependency, see Dependency, address - Control dependency, see Dependency, control - Data dependency, see Dependency, data (flat form) - Address dependency - Control dependency - Data dependency Signed-off-by: Akira Yokosawa ---

[PATCH -perfbook 2/4] memorder: Add index markers for 'address/control/data dependency', take 2

2023-09-22 Thread Akira Yokosawa
Add a few more index markers. Note that the macro \IXpl{} and its friends don't work for the plural form of "dependencies". \IXalth{}{}{} is used instead. Signed-off-by: Akira Yokosawa --- memorder/memorder.tex | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-

[PATCH -perfbook 3/4] memorder: Add index marker for smp_read_barrier_depends() as classic API

2023-09-22 Thread Akira Yokosawa
Signed-off-by: Akira Yokosawa --- memorder/memorder.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memorder/memorder.tex b/memorder/memorder.tex index 9af41194f1de..3d2881df6b35 100644 --- a/memorder/memorder.tex +++ b/memorder/memorder.tex @@ -5293,7 +5293,7

[PATCH -perfbook 4/4] Fix definition of \indexh for flat index pages

2023-09-22 Thread Akira Yokosawa
Current definition results in random original terms appearing in the flat index. Fix this by using "#3 #2" (second-level term) + (first-level term) for flat index. Signed-off-by: Akira Yokosawa --- perfbook-lt.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH -perfbook 0/6] Update Dockerfiles

2023-09-22 Thread Akira Yokosawa
Hi Leo, Follow-up news on font info in PDF: On 2023/06/16 20:05, Akira Yokosawa wrote: > On 2023/06/16 15:07, Leonardo Brás wrote: >> On Thu, 2023-06-15 at 19:43 +0900, Akira Yokosawa wrote: >>> [+To: Leo] >>> >>> On 2023/06/15 18:48, Akira Yokosawa w

Re: [PATCH 10/10] memorder: Fix wrong primitive names in a quick quizz

2023-09-23 Thread Akira Yokosawa
Hi, On 2023/09/24 1:32, SeongJae Park wrote: > From: SeongJae Park > > memorder.tex explains READ_ONCE() is having smp_mb(), but the following > quick quizz asks why it has mb() instead of rmb(). Fix the wrong names > in the quick quizz. > > Signed-off-by: SeongJae Park > --- > memorder/memo

Re: [PATCH -perfbook 2/4] memorder: Add index markers for 'address/control/data dependency', take 2

2023-09-26 Thread Akira Yokosawa
Hi, On 2023/09/23 17:23, Paul E. McKenney wrote: > On Fri, Sep 22, 2023 at 10:55:44PM +0900, Akira Yokosawa wrote: [...] >> >> -The low overheads of the address and data dependencies discussed in >> +The low overheads of the \IXalth{address}{address}{dependency} > &g

[PATCH -perfbook] bib/swtools: Fix bib info of JonathanCorbet2019KCSAN

2023-09-26 Thread Akira Yokosawa
It looks like most fields were not updated when copy pasted from JonathanCorbet2016C11atomics in memorymodel.bib. Replace them with those of named LWN article. Signed-off-by: Akira Yokosawa --- bib/swtools.bib | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bib

[PATCH -perfbook 0/3] Work around errors of unstable Inkscape

2023-10-13 Thread Akira Yokosawa
fault. This is because enabling it won't do any harm on systems with stable Inkscape. I might be able to add some heuristics not to enable the workaround for stable Inkscape installs, but that can wait. Ubuntu releases 22.04LTS, 23.04, and 23.10 are free of this issue. Thanks, Akir

[PATCH -perfbook 1/3] Ignore error of unstable Inkscape

2023-10-13 Thread Akira Yokosawa
en it is enabled. It is enabled by default. [1] Issue #4177 "glib2 2.76.0 breaks Command Line export" at https://gitlab.com/inkscape/inkscape/-/issues/ Signed-off-by: Akira Yokosawa --- Makefile | 5 + 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index f25baf27

[PATCH -perfbook 2/3] Ignore emergency-save SVG files from Inkscape

2023-10-13 Thread Akira Yokosawa
files in successive runs of make and remove them in "make clean", "make cleanfigs", and "make cleanfigs-svg". Update .gitignore as well. Signed-off-by: Akira Yokosawa --- .gitignore | 1 + Makefile | 8 +--- 2 files changed, 6 insertions(+), 3 deletions

[PATCH -perfbook 3/3] Make sure all PDF conversions are complete

2023-10-13 Thread Akira Yokosawa
ny missing PDF files remaining, the recipe of autodate.tex shouldn't run. Unfortunately, it looks like that is not the case. Signed-off-by: Akira Yokosawa --- Makefile | 4 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 6e220c2db524..3875c52b1570 1006

Re: [PATCH] memorder: Add info on recent x86 implemenation of smp_mb()

2023-10-13 Thread Akira Yokosawa
Hi Joel, On 2023/10/13 10:22, Joel Fernandes (Google) wrote: > smp_mb() uses lock;add for x86 in the linux kernel. Add information > about the same. > > Cc: paul...@kernel.org > Signed-off-by: Joel Fernandes (Google) > --- > Not even build tested, just focused on the content and to keep my promi

[PATCH -perfbook v2 0/3] memorder: Add info on recent x86 implementation of smp_mb()

2023-10-14 Thread Akira Yokosawa
te. And I dropped "Cc: Paul", as Paul is the one who will be in the SOB chain. Thanks, Akira -- Akira Yokosawa (1): memorder: Update of ordering SSE non-temporal memory move instructions Joel Fernandes (Google) (2): bib/memorymodel: Add Tsirkin2017 memorder: Add info on recent x

[PATCH -perfbook v2 1/3] bib/memorymodel: Add Tsirkin2017

2023-10-14 Thread Akira Yokosawa
From: "Joel Fernandes (Google)" Add entry of Linux kernel git commit 450cbdd0125c ("locking/x86: Use LOCK ADD for smp_mb() instead of MFENCE"). Signed-off-by: Joel Fernandes (Google) Co-developed-by: Akira Yokosawa Signed-off-by: Akira Yokosawa --- Changes in v2 (by ak

[PATCH -perfbook v2 2/3] memorder: Add info on recent x86 implementation of smp_mb()

2023-10-14 Thread Akira Yokosawa
From: "Joel Fernandes (Google)" smp_mb() uses lock;add for x86 in the linux kernel. Add information about the same. Signed-off-by: Joel Fernandes (Google) Co-developed-by: Akira Yokosawa Signed-off-by: Akira Yokosawa --- Changes in v2 (by akiyks): - Apply punctuation conv

[PATCH -perfbook v2 3/3] memorder: Update of ordering SSE non-temporal memory move instructions

2023-10-14 Thread Akira Yokosawa
Since Linux v4.15, smp_mb(), smp_wmb(), and smp_rmb() don't suffice for ordering them. Update the text accordingly and add a footnote. Signed-off-by: Akira Yokosawa --- memorder/memorder.tex | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/memorder/memorder.

Re: [PATCH -perfbook 0/3] Work around errors of unstable Inkscape

2023-10-14 Thread Akira Yokosawa
On 2023/10/13 23:33, Akira Yokosawa wrote: > Hi Paul, > > I expected the crashing bug in Fedora's distro Inkscape would be > resolved by the time of Fedora 39 release. > I tested Fedora 39 beta and was disappointed to see more or less the > same crashes of command-line ru

[PATCH -perfbook] Prevent inkscape from interacting with desktop manager

2023-10-20 Thread Akira Yokosawa
https://gitlab.gnome.org/GNOME/glib/-/issues/1079 [2]: https://wiki.inkscape.org/wiki/index.php/Using_the_Command_Line Signed-off-by: Akira Yokosawa --- Makefile | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 3875c52b..424a166c 100644 --- a/Mak

Re: [PATCH -perfbook] Prevent inkscape from interacting with desktop manager

2023-10-23 Thread Akira Yokosawa
On 2023/10/21 2:37, Paul E. McKenney wrote: > On Fri, Oct 20, 2023 at 06:29:32PM +0900, Akira Yokosawa wrote: >> Crashes of command-line Inkscape happens when it exits too soon >> before it can be properly removed from window manager's list of >> applications it is aw

[PATCH -perfbook] Update RCU-test-ratio plot as of v6.6

2023-10-31 Thread Akira Yokosawa
Signed-off-by: Akira Yokosawa --- Slightly larger diff of EPS is due to the switch to Ubuntu 22.04 LTS. Thanks, Akira -- CodeSamples/formal/data/RCU-test-ratio.eps | 1574 ++-- CodeSamples/formal/data/rcu-test.dat |1 + 2 files changed, 805 insertions(+), 770

[PATCH -perfbook] Load xcolor before loading newtxtext

2023-11-07 Thread Akira Yokosawa
newtxtext v1.73 loads xcolor for its new option called "supscolor" without any options. This conflicts with the later loading of xcolor with the option list of [table,svgnames]. Resolve it by loading xcolor with our option list just before loading newtxtext. Signed-off-by: Akir

Re: Set PDF metadata from LaTeX title/author commands?

2023-11-09 Thread Akira Yokosawa
And I vaguely recall > this being discussed, but do not see any emails or commits mentioning > pdfusetitle, so I figured I should ask. ;-) I don't remember any discussion about pdfusetitle. As far as I see, this shouldn't do any harm. Reviewe

Re: A question about QuickQuiz 5.46

2023-12-23 Thread Akira Yokosawa
Hi all, I have a comment on this old thread. On 2023/05/21 19:42, Akira Yokosawa wrote: > On Sun, 21 May 2023 07:54:25 +, Hao Lee wrote: >> On Fri, May 19, 2023 at 10:27:48PM +0900, Akira Yokosawa wrote: >>> On Fri, 19 May 2023 06:28:47 +, Hao Lee wrote: >>>&

Re: [PATCH perfbook] bib: make ref to git archive explicit

2023-12-26 Thread Akira Yokosawa
Hi Zhouyi, [Dropping YunJing Li's unreachable address] On Wed, 27 Dec 2023 10:49:54 +0800, zhouzho...@gmail.com wrote: > From: 周洲仪 <8241764+zhouyizhousi...@user.noreply.gitee.com> No, we can't accept a patch from an author whose email address is unreachable (tested from my gmail account). Please

Re: [PATCH -perfbook v3] howto: make ref to git archive explicit

2023-12-26 Thread Akira Yokosawa
structions to do this. should also suffice. Generally speaking, citations are suitable when you want readers to read the referenced document/code and the like. In this case, presenting just the URL of Git repo won't give readers sufficient info. QQz 1.3 belongs to Section 1.2, while the instr

Re: [PATCH -perfbook v3] howto: make ref to git archive explicit

2023-12-27 Thread Akira Yokosawa
On Wed, 27 Dec 2023 16:30:35 +0800, Zhouyi Zhou wrote: > On Wed, Dec 27, 2023 at 3:50 PM Akira Yokosawa wrote: >> >> On Wed, 27 Dec 2023 14:39:20 +0800, zhouzho...@gmail.com wrote: >>> From: Zhouyi Zhou >>> >>> Make "git archive" in answer to Q

Re: [PATCH -perfbook v4] howto: make ref to git archive explicit

2023-12-27 Thread Akira Yokosawa
hat said, I'm beginning to wonder how many of first-time readers would bother trying -nq builds without having got annoyed by those lots of QQz's in perfbook. ;-) > > Suggested-by: Akira Yokosawa > Signed-off-by: Zhouyi Zhou Reviewed-by: Akira Yokosawa Thanks, Akira &

Re: [PATCH -perfbook] toolsoftrade: fix a typo: manpages should be man pages

2023-12-31 Thread Akira Yokosawa
Hi Zhouyi, On 2023/12/31 9:25, Paul E. McKenney wrote: > On Sun, Dec 31, 2023 at 08:11:07AM +0800, Zhouyi Zhou wrote: >> On Sun, Dec 31, 2023 at 7:59 AM Paul E. McKenney wrote: >>> >>> On Sat, Dec 30, 2023 at 04:59:29PM +0800, zhouzho...@gmail.com wrote: From: Zhouyi Zhou Accordin

[PATCH -perfbook 0/8] Use rsvg-convert for SVG --> PDF conversion

2024-01-05 Thread Akira Yokosawa
Tested-by: from Leo before applying. Finally, this series wouldn't affect those of you who don't have rsvg-convert. Thanks, Akira -- Akira Yokosawa (8): Makefile: Add rules to use rsvg-convert for SVG --> PDF conversion Makefile: Don't use rsvg-convert < 2.57 Makef

Re: [PATCH -perfbook 0/8] Use rsvg-convert for SVG --> PDF conversion

2024-01-05 Thread Akira Yokosawa
So let's use rsvg-convert when it is available. For Ubuntu and Debian, rsvg-convert belongs to the librsvg2-bin package. For Fedora, it is provided in the librsvg2-tools package. Signed-off-by: Akira Yokosawa --- Makefile | 25 - 1 file changed, 20 insertions(+

[PATCH -perfbook 2/8] Makefile: Don't use rsvg-convert < 2.57

2024-01-05 Thread Akira Yokosawa
fallback. For rsvg-convert >= 2.57, specify --format=pdf1.5, which matches inkscape's default behavior. Signed-off-by: Akira Yokosawa --- Makefile | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index f869862c..9f19ce52 1006

[PATCH -perfbook 3/8] Makefile: Allow rsvg-convert 2.52

2024-01-05 Thread Akira Yokosawa
im versions by default. Signed-off-by: Akira Yokosawa --- Makefile | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9f19ce52..3844c37b 100644 --- a/Makefile +++ b/Makefile @@ -119,12 +119,24 @@ ifdef RSVG_CONVERT RSVG_CONVERT_VER := $(shel

[PATCH -perfbook 4/8] Makefile: Use rsvg-convert anyway if no inkscape is found

2024-01-05 Thread Akira Yokosawa
Even if rsvg-convert is too young and its SVG --> PDF conversion sometimes results in poor-looking figures, using it is much better than giving up the conversion at all. Signed-off-by: Akira Yokosawa --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile in

[PATCH -perfbook 5/8] cartoons: Retouch r-2014-Memory-barrier.svg

2024-01-05 Thread Akira Yokosawa
r-2014-Memory-barrier.svg was drawn by Inkscape 0.48.3.1. Recent versions of rsvg-convert have trouble with outlined text in the cartoon. Retouch the figure by importing a properly rendered PDF into modern Inkscape and saving it as r-2023-Memory-barrier.svg. Signed-off-by: Akira Yokosawa

[PATCH -perfbook 6/8] FAQ-BUILD: List package for rsvg-convert in package lists

2024-01-05 Thread Akira Yokosawa
Instead of inkscape, name package for rsvg-convert. Unfortunately, the package name varies wildly among distros. Adjust surrounding text accordingly. Signed-off-by: Akira Yokosawa --- FAQ-BUILD.txt | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a

[PATCH -perfbook 7/8] docker: Add packages for rsvg-convert

2024-01-05 Thread Akira Yokosawa
: Akira Yokosawa --- docker/Dockerfile| 4 ++-- docker/Dockerfile.fedora | 7 ++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index ec89c6f2..66fd2b3f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,7 +1,7 @@ ARG rel

[PATCH -perfbook 8/8] gitlab-ci.yml: Install librsvg instead of inkscape

2024-01-05 Thread Akira Yokosawa
On Arch Linux, rsvg-convert is provided in the librsvg package. Install it instead of inkscape. Using rsvg-convert can shorten runtime of CI job for building PDFs a bit. Signed-off-by: Akira Yokosawa Cc: Leonardo Bras --- Needs an explicit ACK or Tested-by from Leo. Expected order of reduction

Re: [PATCH -perfbook 0/8] Use rsvg-convert for SVG --> PDF conversion

2024-01-05 Thread Akira Yokosawa
On Fri, 5 Jan 2024 05:31:36 -0800, Paul E. McKenney wrote: > On Fri, Jan 05, 2024 at 06:44:47PM +0900, Akira Yokosawa wrote: >> Hi Paul, >> >> [Cc 0/8 and 8/8 to Leo, Patch 8/8 touches gitlab-ci.yml] >> >> Frequent crashes of Inkscape I encountered in 2023,

Re: [PATCH -perfbook 8/8] gitlab-ci.yml: Install librsvg instead of inkscape

2024-01-05 Thread Akira Yokosawa
Hi Leo, On Fri, 05 Jan 2024 18:39:15 -0300, Leonardo Brás wrote: > On Fri, 2024-01-05 at 18:58 +0900, Akira Yokosawa wrote: >> On Arch Linux, rsvg-convert is provided in the librsvg package. >> Install it instead of inkscape. >> >> Using rsvg-convert can shorten run

Re: A question about QuickQuiz 5.46

2024-01-11 Thread Akira Yokosawa
On Sat, 30 Dec 2023 15:57:34 -0800, Paul E. McKenney wrote: > On Sat, Dec 23, 2023 at 06:12:31PM +0900, Akira Yokosawa wrote: >> Hi all, >> >> I have a comment on this old thread. >> >> On 2023/05/21 19:42, Akira Yokosawa wrote: >>> On Sun, 21 May 2023

[PATCH -perfbook 1/2] count_lim_atomic.c: Enclose complex loop with {}

2024-01-11 Thread Akira Yokosawa
Subject: [PATCH -perfbook 1/2] count_lim_atomic.c: Enclose complex loop with {} Let's get consistent with coding style of Linux kernel. Signed-off-by: Akira Yokosawa --- CodeSamples/count/count_lim_atomic.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CodeSa

[RFC PATCH -perfbook 2/2] count: Update QQ 5.46

2024-01-11 Thread Akira Yokosawa
Hao Lee Link: https://lore.kernel.org/perfbook/20230517120110.ga23...@haolee.io/ Signed-off-by: Akira Yokosawa --- count/count.tex | 36 ++-- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/count/count.tex b/count/count.tex index c82e7333..e8248b95 100644 -

Re: There is a line missing in the diagram Figure 10.18 and Figure E.7

2024-01-15 Thread Akira Yokosawa
Hi Zhouyi, On 2024/01/15 15:20, Zhouyi Zhou wrote: > Hi Paul and Akira, > > Our Chinese version editor Yunjing Li points out that there is a line > missing in Figure E.7, there should be 7, but Figure E.7 has only 6. > > Similarly, I found there should be 6 lines in Figure 10.18, but > actually

[PATCH -perfbook] memorder: Tweak size of figures in Answer to QQz on x86 memory ordering

2024-01-23 Thread Akira Yokosawa
The use \columnwidth results in too large figures in -1c and -eb builds. Instead, use \twocolumwidth (\columnwidth of 2c build) and make them more or less similarly scaled. Signed-off-by: Akira Yokosawa --- memorder/memorder.tex | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions

Re: [PATCH -perfbook] memorder: Tweak size of figures in Answer to QQz on x86 memory ordering

2024-01-25 Thread Akira Yokosawa
On 2024/01/24 1:51, Paul E. McKenney wrote: > On Tue, Jan 23, 2024 at 11:58:24PM +0900, Akira Yokosawa wrote: >> The use \columnwidth results in too large figures in -1c and -eb >> builds. Instead, use \twocolumwidth (\columnwidth of 2c build) and >> make them more or

[RFT PATCH -perfbook 0/2] Retouch plots in QQA 15.31

2024-01-30 Thread Akira Yokosawa
e new .eps figures, are not needed anymore, please "git rm" them as well. If there is anything I've missed, please let me know. Thanks, Akira -- Akira Yokosawa (2): CodeSamples/cpu/data: plots.sh: Fix typo in xlabel for fre plot CodeSamples/c

[RFT PATCH -perfbook 1/2] CodeSamples/cpu/data/.../plots.sh: Fix typo in xlabel for fre plot

2024-01-30 Thread Akira Yokosawa
Fix trivial typo in xlabel. Signed-off-by: Akira Yokosawa --- .../cpu/data/kerneltest009.05.atn6.2024.01.17-08.25.02/plots.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodeSamples/cpu/data/kerneltest009.05.atn6.2024.01.17-08.25.02/plots.sh b/CodeSamples/cpu/data

[RFT PATCH -perfbook 2/2] CodeSamples/cpu/data: Use "smooth frequency" for plotting histogram

2024-01-30 Thread Akira Yokosawa
Add gnuplot scripts for generating EPS plots. Use "smooth frequency" feature of gnuplot for plotting distribution histograms. Distribution data in coe.dat, fre.dat, and rfe.dat are converted on-the-fly into single-column data by using expand.pl as a filter. Signed-off-by: Akir

Re: [RFT PATCH -perfbook 0/2] Retouch plots in QQA 15.31

2024-02-02 Thread Akira Yokosawa
On 2024/01/31 5:20, Paul E. McKenney wrote: [...] > > Except that github choked on the 366MB coe.out file. The gzip command > compresses it to 72MB, and "tar -cJf" gets it down to 33MB, so maybe I > rebase the compressed version into the commit that created that file. Quote from github's file si

[PATCH -perfbook 2/2] memorder: Remove empty line at the end of answer to QQz 15.31

2024-02-03 Thread Akira Yokosawa
Extra empty line breaks the placement of end-of-answer symbol. Remove it. Signed-off-by: Akira Yokosawa --- memorder/memorder.tex | 1 - 1 file changed, 1 deletion(-) diff --git a/memorder/memorder.tex b/memorder/memorder.tex index 55e431e5..516cd9f1 100644 --- a/memorder/memorder.tex +++ b

memorder: SVG figures incompatible with Ubuntu 20.04's Inkscape

2024-02-11 Thread Akira Yokosawa
Hi Paul, I just did a test build under Ubuntu 20.04. Inkscape 0.92.5 crashes with new SVG figures memorder/*-hopes.svg. $ inkscape --export-pdf=/tmp/test.pdf memorder/co-hopes.svg [usual warnings ...] ** (inkscape:9): CRITICAL **: 23:17:05.340: void Inkscape::Extension::Internal::CairoRenderCo

Re: memorder: SVG figures incompatible with Ubuntu 20.04's Inkscape

2024-02-11 Thread Akira Yokosawa
On 2024/02/12 8:48, Paul E. McKenney wrote: > On Mon, Feb 12, 2024 at 08:30:49AM +0900, Akira Yokosawa wrote: >> Hi Paul, >> >> I just did a test build under Ubuntu 20.04. >> >> Inkscape 0.92.5 crashes with new SVG figures memorder/*-hopes.svg. >> >> $

[PATCH -perfbook] memorder: Retouch co-, fr-, and rf-hopes.svg

2024-02-12 Thread Akira Yokosawa
These SGVs have bi-directional arrows which cause Ubuntu 20.04's inkscape 0.92.5 to crash. As workarounds, replace them with the ones which are safe in the old version of inkscape. Signed-off-by: Akira Yokosawa --- memorder/co-hopes.svg

[PATCH -perfbook] Cope with behavior change in newtxtext v1.738

2024-02-19 Thread Akira Yokosawa
ts of \mathsf and \mathtt are the same in both cases, and to ensure that in both, the prior loading of a sf or tt text font would result in those being used for \mathsf, \mathtt without any further interventions. Link: [1] https://mirrors.ctan.org/fonts/newtx/README Signed-off-by: Akira Yoko

[PATCH -perfbook 2/2] Update rcu-test.dat as of Linux kernel v6.8

2024-03-14 Thread Akira Yokosawa
Signed-off-by: Akira Yokosawa --- CodeSamples/formal/data/rcu-test.dat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CodeSamples/formal/data/rcu-test.dat b/CodeSamples/formal/data/rcu-test.dat index 4ac33da4..c0ac6fda 100644 --- a/CodeSamples/formal/data/rcu-test.dat

Re: [PATCH] signal handlers: volatile sigatomic_t, not volatile OR sigatomic_t

2024-03-28 Thread Akira Yokosawa
Hi, Somehow, all messages from Guilherme ended up in my spam folder and I couldn't follow this thread properly earlier. I think I now see the context. On Thu, 28 Mar 2024 12:30:26 -0400, Elad Lahav wrote: > Looks like this patch wasn't merged. Regardless of my > questions/observations, Guilherme

[PATCH -perfbook] docker: Add options to tar for normal-user mode behavior

2024-04-21 Thread Akira Yokosawa
previous errors Add --no-same-owner and --no-same-permission options to tar and make it behave the same way as in its normal-user mode. Signed-off-by: Akira Yokosawa --- docker/Dockerfile| 2 +- docker/Dockerfile.fedora | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH -perfbook 1/2] locking: Mark sentence-ending period as such

2024-05-08 Thread Akira Yokosawa
uot;) have added a sentence in the paragraph. Fixes: 678e6cc3c0f1 ("locking: Cite Dice et al. for hierarchical lock") Signed-off-by: Akira Yokosawa --- locking/locking.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locking/locking.tex b/locking/locking.tex index

[PATCH -perfbook 2/2] defer: Use \tco{} in inline enum list

2024-05-08 Thread Akira Yokosawa
esired results. Signed-off-by: Akira Yokosawa --- defer/seqlock.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defer/seqlock.tex b/defer/seqlock.tex index 5be8ae56..3ed2f483 100644 --- a/defer/seqlock.tex +++ b/defer/seqlock.tex @@ -141,7 +141,7 @@ will pass to a l

[PATCH -perfbook 1/2] CodeSamples/formal: Add data for Linux v6.9 to rcu-test.dat

2024-05-31 Thread Akira Yokosawa
Signed-off-by: Akira Yokosawa --- CodeSamples/formal/data/rcu-test.dat | 1 + 1 file changed, 1 insertion(+) diff --git a/CodeSamples/formal/data/rcu-test.dat b/CodeSamples/formal/data/rcu-test.dat index c0ac6fda..12aa01fc 100644 --- a/CodeSamples/formal/data/rcu-test.dat +++ b/CodeSamples

[PATCH -perfbook 2/2] Don't remove $(SVG_GENERATED) in 'make clean'

2024-05-31 Thread Akira Yokosawa
t;clean". Fix it. Fixes: dac608ac4e69 ("Plot RCU-test-ratio on-the-fly") Signed-off-by: Akira Yokosawa --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index dc8fceec..762df051 100644 --- a/Makefile +++ b/Makefile @@ -654,7 +654,6 @@ clean: rm -f

[PATCH -perfbook 0/3] Work around backward incompatible changes in LaTeX2e 2024-06-01

2024-06-11 Thread Akira Yokosawa
indexing. [1]: https://lore.kernel.org/r/a3ff0522-fd2d-4c87-9c7b-00cbdd5f3...@gmail.com/ Akira Yokosawa (3): Work around conflict between arydshln and array v2.6 Silence warning msg from LaTeX while loading parnotes package Use date as rollback options for glossaries related packages

Re: [PATCH -perfbook 0/3] Work around backward incompatible changes in LaTeX2e 2024-06-01

2024-06-11 Thread Akira Yokosawa
On 2024/06/11 18:06, Akira Yokosawa wrote: > Hi Paul, I fat-fingered a patch for this series. Will send v2 soon. > > As I mentioned earlier [1], recent updates in core LaTeX and accompanying > changes in the array package broke build of perfbook. > > There are two modes of

[PATCH -perfbook v2 0/3] Work around backward incompatible changes in LaTeX2e 2024-06-01

2024-06-11 Thread Akira Yokosawa
indexing. [1]: https://lore.kernel.org/r/a3ff0522-fd2d-4c87-9c7b-00cbdd5f3...@gmail.com/ Akira Yokosawa (3): Work around conflict between arydshln and array v2.6 Silence warning msg from LaTeX while loading parnotes package Use date as rollback options for glossaries related packages

[PATCH -perfbook v2 1/3] Work around conflict between arydshln and array v2.6

2024-06-11 Thread Akira Yokosawa
LaTeX code compatible with earlier installation of TeX Live, where the latex engine can pick a suitable version available. Signed-off-by: Akira Yokosawa --- I have tried to contact arydshln package maintainer, but failed to get any response so far. --- perfbook-lt.tex | 3 +++ 1 file changed, 3

[PATCH -perfbook v2 2/3] Silence warning msg from LaTeX while loading parnotes package

2024-06-11 Thread Akira Yokosawa
ce it by enabling a filter for this particular message. Signed-off-by: Akira Yokosawa --- Unfortunately, parnotes doesn't have any maintainer assigned and it is not clear if the issue can be taken care of soon. --- perfbook-lt.tex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pe

[PATCH -perfbook v2 3/3] Use date as rollback options for glossaries related packages

2024-06-11 Thread Akira Yokosawa
While discussing about rollback of the array package, array's maintainer recommended using date as rollback options. Apply the same approach for rollback of glossaries related packages. This way, it would be obvious that those packages as of early October 2022 worked fine. Signed-off-by:

Re: [PATCH -perfbook v2 0/3] Work around backward incompatible changes in LaTeX2e 2024-06-01

2024-06-12 Thread Akira Yokosawa
On Tue, 11 Jun 2024 05:55:13 -0700, Paul E. McKenney wrote: > On Tue, Jun 11, 2024 at 06:34:25PM +0900, Akira Yokosawa wrote: >> Hi Paul, >> >> As I mentioned earlier [1], recent updates in core LaTeX and accompanying >> changes in the array package broke build of pe

Re: [PATCH -perfbook v2 0/3] Work around backward incompatible changes in LaTeX2e 2024-06-01

2024-06-13 Thread Akira Yokosawa
On Wed, 12 Jun 2024 16:04:36 -0700, Paul E. McKenney wrote: > On Thu, Jun 13, 2024 at 08:01:44AM +0900, Akira Yokosawa wrote: >> On Tue, 11 Jun 2024 05:55:13 -0700, Paul E. McKenney wrote: >>> On Tue, Jun 11, 2024 at 06:34:25PM +0900, Akira Yokosawa wrote: >>>> Hi

Re: [PATCH -perfbook v2 0/3] Work around backward incompatible changes in LaTeX2e 2024-06-01

2024-06-13 Thread Akira Yokosawa
On Thu, 13 Jun 2024 20:33:29 -0700, Paul E. McKenney wrote: > On Fri, Jun 14, 2024 at 11:12:27AM +0900, Akira Yokosawa wrote: [...] >> >> Good news. >> >> I've got parnotes v3c in today's update of vanilla TeX Live 2024. >> It fixes that "harmless&q

[PATCH -perfbook] Revert "Work around conflict between arydshln and array v2.6"

2024-06-29 Thread Akira Yokosawa
://ctan.org/pkg/latex-firstaid # [1] Signed-off-by: Akira Yokosawa --- perfbook-lt.tex | 3 --- 1 file changed, 3 deletions(-) diff --git a/perfbook-lt.tex b/perfbook-lt.tex index 21713a91..0fa51425 100644 --- a/perfbook-lt.tex +++ b/perfbook-lt.tex @@ -9,9 +9,6 @@ % within a page. See: https

[PATCH -perfbook 1/2] CodeSamples/formal: Update rcu-test.dat for v6.10

2024-07-26 Thread Akira Yokosawa
Signed-off-by: Akira Yokosawa --- CodeSamples/formal/data/rcu-test.dat | 1 + 1 file changed, 1 insertion(+) diff --git a/CodeSamples/formal/data/rcu-test.dat b/CodeSamples/formal/data/rcu-test.dat index 12aa01fc..4a958dfc 100644 --- a/CodeSamples/formal/data/rcu-test.dat +++ b/CodeSamples

[PATCH -perfbook 2/2] datastruct: Fix off-by-one error in CPU range

2024-07-26 Thread Akira Yokosawa
Table 10.1 shows that Socket 0 contains CPUs 0-27 and 224-251, while the text reads "with CPUs 0-27 and 225-251 mapped to the first socket". Fix the off-by-one error in the text. Signed-off-by: Akira Yokosawa --- datastruct/datastruct.tex | 2 +- 1 file changed, 1 insertion(+),

[PATCH -perfbook 1/2] whymb: Tweak width of Table C.1 for -eb builds

2024-08-05 Thread Akira Yokosawa
Commit ffdab3a2e986 ("whymb: Show "permissions" misses in C.1") made Table C.1 too wide for -eb builds. Add \ebresizewidth{ ... } around the table. Signed-off-by: Akira Yokosawa --- appendix/whymb/whymemorybarriers.tex | 2 ++ 1 file changed, 2 insertions(+) diff --

[PATCH 2/2] whymb: Fix staccato of "loads" and typos of "incuring"

2024-08-05 Thread Akira Yokosawa
Signed-off-by: Akira Yokosawa --- appendix/whymb/whymemorybarriers.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appendix/whymb/whymemorybarriers.tex b/appendix/whymb/whymemorybarriers.tex index 01c6a703..57800c10 100644 --- a/appendix/whymb/whymemorybarriers.tex

New Figure 3.13 is too tall in -eb size builds

2024-08-26 Thread Akira Yokosawa
Hi Paul, Leo's latest CI build of perfbook-eb.pdf failed as you can see at: https://gitlab.com/linux-kernel/perfbook/-/jobs/7668105673 This is because the new Figure 3.13, or cpu/SimpleWrite.svg, is optimized for -2c builds and too tall for -eb size. A quick fix would be to shrink the figur

Re: New Figure 3.13 is too tall in -eb size builds

2024-08-27 Thread Akira Yokosawa
On Tue, 27 Aug 2024 04:02:32 -0700, Paul E. McKenney wrote: > On Tue, Aug 27, 2024 at 01:50:56PM +0900, Akira Yokosawa wrote: >> Hi Paul, >> >> Leo's latest CI build of perfbook-eb.pdf failed as you can see at: >> >> https://gitlab.com/linux-kernel/pe

Re: New Figure 3.13 is too tall in -eb size builds

2024-08-28 Thread Akira Yokosawa
On Wed, 28 Aug 2024 07:49:39 -0700, Paul E. McKenney wrote: [...] > I added a grey rectangle to connect the two CPUs, which allowed me to > halve the space between each row. I also narrowed the gap between the > CPUs a bit. For me, the result is more readable in 2c mode and also > builds eb witho

[PATCH -perfbook 0/5] bib: URL updates

2024-08-28 Thread Akira Yokosawa
ed updates. I'm going to take care of them. Thanks, Akira -- Akira Yokosawa (5): bib: Replace citeseer{x} URLs bib/os: Update URLs of papers related to Synthesis OS bib/os: Add LWN's KHB article on Synthesis by Valerie (Feb 2008) defer: Cite Valerie's KHB article Use

[PATCH -perfbook 1/5] bib: Replace citeseer{x} URLs

2024-08-28 Thread Akira Yokosawa
s there is no sign of the issue resolved soon, replace those URLs with direct links or DOIs. For a USENIX paper who has a DOI, provide a URL under www.usenix.org as a notes as well. Signed-off-by: Akira Yokosawa --- bib/RCU.bib | 2 +- bib/WFS.bib | 4 +--- bib/hw.bib | 2 +-

[PATCH -perfbook 2/5] bib/os: Update URLs of papers related to Synthesis OS

2024-08-28 Thread Akira Yokosawa
tation (cucs-039-92.ps.gz) archived at the Wayback Machine. The used-to-work URL is added in the makeshift "brokenurl" field for the moment. Signed-off-by: Akira Yokosawa --- bib/os.bib | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bib/os.bib b/bib/os.bi

[PATCH -perfbook 3/5] bib/os: Add LWN's KHB article on Synthesis by Valerie (Feb 2008)

2024-08-28 Thread Akira Yokosawa
Signed-off-by: Akira Yokosawa --- bib/os.bib | 9 + 1 file changed, 9 insertions(+) diff --git a/bib/os.bib b/bib/os.bib index 7f608172..301c74ab 100644 --- a/bib/os.bib +++ b/bib/os.bib @@ -1016,6 +1016,15 @@ on Operating Systems Principles", [Viewed November 26,

[PATCH -perfbook 4/5] defer: Cite Valerie's KHB article

2024-08-28 Thread Akira Yokosawa
Signed-off-by: Akira Yokosawa --- defer/defer.tex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/defer/defer.tex b/defer/defer.tex index 4a86b6cc..eefb1215 100644 --- a/defer/defer.tex +++ b/defer/defer.tex @@ -10,7 +10,8 @@ The strategy of deferring work goes back before

[PATCH -perfbook 5/5] Use underline for url links in 2c builds' bibliography

2024-08-28 Thread Akira Yokosawa
Light-blue borders around URL links mask periods at title ends in bibliography. Use thin black underlines instead to avoid such visual interference. Signed-off-by: Akira Yokosawa --- perfbook-lt.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perfbook-lt.tex b/perfbook

[PATCH -perfbook 1/2] punctcheck.pl: Expand hint message on mid-line punctuation

2024-09-09 Thread Akira Yokosawa
Cover mid-sentence punctuation. Signed-off-by: Akira Yokosawa --- utilities/punctcheck.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/punctcheck.pl b/utilities/punctcheck.pl index 94cbafc9..317329b4 100755 --- a/utilities/punctcheck.pl +++ b/utilities

[PATCH -perfbook 2/2] glossary: Fix warning from "make punctcheck"

2024-09-09 Thread Akira Yokosawa
"make checkpunct" says: Hint: Break at end of sentence or mark mid-sentece punct as such (xxx.\@). ./glossary.tex:158: overlapping categories, for example, read misses vs. write misses Fix it. Signed-off-by: Akira Yokosawa --- glossary.tex | 2 +- 1 file changed, 1 inser

Re: A question about "4.3.4.2 A Volatile Solution" of perfbook

2024-11-11 Thread Akira Yokosawa
On Mon, 11 Nov 2024 15:45:22 +0800, Nan Xiao wrote: > Hello, > > Greetings from me! Hi! > > I am reading "4.3.4.2 A Volatile Solution" of perfbook, and come > across following summary: > > To summarize, the volatile keyword can prevent load tearing and > store tearing in cases where the lo

[PATCH -perfbook 1/2] CodeSamples/formal/rcutorture.sh: Don't bother with stable tags

2024-09-27 Thread Akira Yokosawa
: Akira Yokosawa --- CodeSamples/formal/rcutorture.sh | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CodeSamples/formal/rcutorture.sh b/CodeSamples/formal/rcutorture.sh index 23686805..5e568e24 100644 --- a/CodeSamples/formal/rcutorture.sh +++ b/CodeSamples/formal

[PATCH -perfbook 2/2] CodeSamples/formal: Update rcu-test.dat for v6.11

2024-09-27 Thread Akira Yokosawa
Signed-off-by: Akira Yokosawa --- CodeSamples/formal/data/rcu-test.dat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CodeSamples/formal/data/rcu-test.dat b/CodeSamples/formal/data/rcu-test.dat index 4a958dfc..e56d1d7c 100644 --- a/CodeSamples/formal/data/rcu-test.dat

Re: [PATCH -perfbook 0/6] CodeSamples: Make non-default combinations of cc and -O levels happy

2025-01-05 Thread Akira Yokosawa
On Sun, 5 Jan 2025 11:02:11 -0800, Paul E. McKenney wrote: [...] > > Queued and pushed, thank you very much! And happy perfect-square > new year! You mean: 45**2 == 2025 ? You can go further: (1+2+3+4+5+6+7+8+9)**2 == 2025 , and 1**3 + 2**3 + 3**3 + 4**3 + 5**3 + 6**3 + 7**3 + 8**3 + 9

[PATCH -perfbook] Revert "CodeSamples: Add -fcommon to GCC_ARGS"

2025-01-05 Thread Akira Yokosawa
This reverts commit c1f3367e5701333dd9c2bdd629754d5278b66d2a. Commit ca0fdef62907 ("CodeSamples: Add #ifndef SUBOBJ to api-pthreads.h") resolved root cause of build failures that commit c1f3367e5701 had worked around. The band-aid fix can be reverted now. Signed-off-by: Akir

Re: [PATCH v4] CodeSamples: Fix liburcu-signal support deprecation

2024-12-29 Thread Akira Yokosawa
apply. Link: https://gitlab.com/linux-kernel/perfbook/-/jobs/8732944799 [1] Link: https://lists.lttng.org/pipermail/lttng-dev/2024-December/030893.html [2] Reviewed-by: Akira Yokosawa Tested-by: Akira Yokosawa > --- > CodeSamples/datastruct/Issaquah/Makefile

Re: [PATCH v3] CodeSamples: Work around removal of liburcu-signal

2024-12-28 Thread Akira Yokosawa
Hi, Leonardo Brás wrote: [...] >> Hi Akira, >> >> That's a creative way of dealing with this issue, but if we want to add that >> complexity, I would rather use $(pkg-config --libs liburcu). >> >> Wouldn't this fix the issue as well? >> >> Thanks! > > Also, according to Paul's comment on v2 patc

Re: [PATCH v3] CodeSamples: Work around removal of liburcu-signal

2024-12-28 Thread Akira Yokosawa
On 2024/12/29 9:17, Akira Yokosawa wrote: > The use of $(pkg-config --libs liburcu) didn't occur to me. > > I'll give it a try. On Ubuntu 22.04 LTS, "pkg-config --libs liburcu" returns: -lurcu-common -lurcu I don't know much about pkg-config, but is it p

  1   2   >