Skip to contentSkip to conversation

debugging: Trivial fixups

PATCH In review SeongJae Park 3 participants 7 messages Feb 12, 2023 – Feb 13, 2023

lore
Share & tools
lore
#0 lore raw

v3 cover debugging: Trivial fixups

Changes from v2
- Fix subject of patch 1 (Akira Yokosawa)
- Remove redundant following sections intro instead of making it explicit (Akira Yokosawa)

Changes from v1
- Use 'qco{}' for quoted strings (patch 1, 2) (Akira Yokosawa)
- Explicitly distinguish section and subsection (patch 4) (Paul E. McKeneeny)

-----

This patchset contains trivial fixups for debugging/, which found while doing Korean translation[1].

[1] https://github.com/sjp38/perfbook-ko_KR

SeongJae Park (4):
debugging: Use \qco{} for 'time' output examples
debugging: Use \co{} and \qco{} for 'git' and 'Fixes:', respectively
debugging: Remove unnecessary space in a sentence
debugging: Remove redundant following sections introduction

 debugging/debugging.tex | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH v3 1/4 debugging: Use \qco{} for 'time' output examples

A quick quiz answer in debugging.tex is wrapping 'time' example outputs with only `` and ''. Use \qco{} instead.

---
 debugging/debugging.tex | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
debugging/debugging.tex +8 -8
index a5324a14..fde2d446 100644
@@ -257,8 +257,8 @@ validation is just job for you.
 		consumed in system mode by a CPU-bound program?
 	\item	Do you have a test case in which all three times
 		are zero?
-	\item	Do you have a test case in which the ``user'' and ``sys''
-		times sum to more than the ``real'' time?
+	\item	Do you have a test case in which the \qco{user} and \qco{sys}
+		times sum to more than the \qco{real} time?
 		(This would of course be completely legitimate in
 		a multithreaded program.)
 	\item	Do you have a set of tests cases in which one of the
@@ -267,7 +267,7 @@ validation is just job for you.
 		times uses more than ten seconds?
 	\item	Do you have a set of test cases in which one of the
 		times has non-zero minutes?
-		(For example, ``15m36.342s''.)
+		(For example, \qco{15m36.342s}.)
 	\item	Do you have a set of test cases in which one of the
 		times has a seconds value of greater than 60?
 	\item	Do you have a set of test cases in which one of the
@@ -279,21 +279,21 @@ validation is just job for you.
 		times has a positive minutes value but a negative
 		seconds value?
 	\item	Do you have a set of test cases in which one of the
-		times omits the ``m'' or the ``s''?
+		times omits the \qco{m} or the \qco{s}?
 	\item	Do you have a set of test cases in which one of the
 		times is non-numeric?
-		(For example, ``Go Fish''.)
+		(For example, \qco{Go Fish}.)
 	\item	Do you have a set of test cases in which one of the
 		lines is omitted?
-		(For example, where there is a ``real'' value and
-		a ``sys'' value, but no ``user'' value.)
+		(For example, where there is a \qco{real} value and
+		a \qco{sys} value, but no \qco{user} value.)
 	\item	Do you have a set of test cases where one of the
 		lines is duplicated?
 		Or duplicated, but with a different time value for
 		the duplicate?
 	\item	Do you have a set of test cases where a given line
 		has more than one time value?
-		(For example, ``real 0m0.132s 0m0.008s''.)
+		(For example, \qco{real 0m0.132s 0m0.008s}.)
 	\item	Do you have a set of test cases containing random
 		characters?
 	\item	In all test cases involving invalid input, did you
Signature · 1 line
2.17.1
#2 lore raw

PATCH v3 2/4 debugging: Use \co{} and \qco{} for 'git' and 'Fixes:', respectively

In reply to SeongJae Park

In 'debugging/', 'git' is a command and 'Fixes:' is a string in command output, which usually enclosed via '\co{}' and '\qco{}' respectively, but those are enclosed with '\emph{}'. Use '\co{}' and '\qco{}' respectively, instead for being more consistent.

---
 debugging/debugging.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
debugging/debugging.tex +2 -2
index fde2d446..4dfb1229 100644
@@ -862,8 +862,8 @@ by the author's invalid assumptions, and who might also test the code.
 	hackers of harboring???
 }\QuickQuizAnswer{
 	Those wishing a complete answer to this question are encouraged
-	to search the Linux kernel \emph{git} repository for commits
-	containing the string ``Fixes:''.
+	to search the Linux kernel \co{git} repository for commits
+	containing the string \qco{Fixes:}.
 	There were many thousands of them just in the year 2020, including
 	fixes for the following invalid assumptions:
 
Signature · 1 line
2.17.1
#3 lore raw

PATCH v3 3/4 debugging: Remove unnecessary space in a sentence

In reply to SeongJae Park

Two spaces are usually used between sentences, but a sentence in debugging is using two spaces inside a sentence. Make it uses only one space for consistency.

---
 debugging/debugging.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
debugging/debugging.tex +1 -1
index 4dfb1229..b7538620 100644
@@ -2153,7 +2153,7 @@ serve four major purposes:
 	against your competitors' offerings.
 \end{enumerate}
 
-Of course,  the only completely fair framework is the intended
+Of course, the only completely fair framework is the intended
 application itself.
 So why would anyone who cared about fairness in benchmarking
 bother creating imperfect benchmarks rather than simply
Signature · 1 line
2.17.1
#4 lore raw

PATCH v3 4/4 debugging: Remove redundant following sections introduction

In reply to SeongJae Park

A section in debugging.tex is introducing following sections twice. Remove the redundant one.

---
 debugging/debugging.tex | 1 -
 1 file changed, 1 deletion(-)
debugging/debugging.tex +0 -1
index b7538620..191967ba 100644
@@ -2302,7 +2302,6 @@ to creep in, including:
 
 The first and fourth sources of interference provide conflicting advice,
 which is one sign that we are living in the real world.
-The remainder of this section looks at ways of resolving this conflict.
 
 \QuickQuiz{
 	But what about other sources of error, for example, due to
Signature · 1 line
2.17.1
Reviewed-by on the v3 series
#5 lore raw
In reply to SeongJae Park
Quoted 15 lines · SeongJae Park

Changes from v2
- Fix subject of patch 1 (Akira Yokosawa)
- Remove redundant following sections intro instead of making it explicit (Akira Yokosawa)

Changes from v1
- Use 'qco{}' for quoted strings (patch 1, 2) (Akira Yokosawa)
- Explicitly distinguish section and subsection (patch 4) (Paul E. McKeneeny)

-----

This patchset contains trivial fixups for debugging/, which found while doing Korean translation[1].

Quoted 7 lines

[1] https://github.com/sjp38/perfbook-ko_KR

SeongJae Park (4):
debugging: Use \qco{} for 'time' output examples
debugging: Use \co{} and \qco{} for 'git' and 'Fixes:', respectively
debugging: Remove unnecessary space in a sentence
debugging: Remove redundant following sections introduction

For the series,

Thanks, Akira

Quoted 4 lines
 debugging/debugging.tex | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)
#6 lore raw
Quoted 24 lines · Akira Yokosawa
Quoted 15 lines · SeongJae Park

Changes from v2
- Fix subject of patch 1 (Akira Yokosawa)
- Remove redundant following sections intro instead of making it explicit (Akira Yokosawa)

Changes from v1
- Use 'qco{}' for quoted strings (patch 1, 2) (Akira Yokosawa)
- Explicitly distinguish section and subsection (patch 4) (Paul E. McKeneeny)

-----

This patchset contains trivial fixups for debugging/, which found while doing Korean translation[1].

Quoted 7 lines

[1] https://github.com/sjp38/perfbook-ko_KR

SeongJae Park (4):
debugging: Use \qco{} for 'time' output examples
debugging: Use \co{} and \qco{} for 'git' and 'Fixes:', respectively
debugging: Remove unnecessary space in a sentence
debugging: Remove redundant following sections introduction

Quoted 3 lines

For the series,

Applied and pushed, thank you!

Thanx, Paul