Skip to contentSkip to conversation

Perfbook : Thanks!

DISCUSSION Paul E. McKenney 2 participants 5 messages Jan 31, 2023 – Feb 1, 2023 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 21 lines · Leonardo Brás

Hello Paul,

I am a newbie Kernel Developer, and I was already a fan of your work on memory- barriers.txt.

A couple weeks ago a friend of mine recommended reading perfbook, and sent me an older version (2011.01.02a). After reading a few pages I went on and found that the book had newer releases and is often updated and maintained with git, which got me really impressed.

(I had a lot of work gone to waste on other books I found errors on, and perfbook's git workflow just make a lot of sense to me)

Since it's a topic I am really interested in, and I noticed the book has updates from a couple days ago, I decided to install texinfo packages and compile a new version for me to start reading.

I then noticed it would be nice to keep reading the latest version whenever an update came by, so I created a gitlab-ci to re-generate the book after a new commit / push: https://gitlab.com/linux-kernel/perfbook

Quoted 7 lines

Is that ok if I keep this gitlab repository re-generating the book?

Is a gitlab-ci of any use for you?
If so, I can send it as a patch (a single .gitlab-ci.yaml file), and refine it according to your needs.

Thanks for keeping the book updated!

Hello, Leonardo, and glad you like the book!

On the automated CI, I cant't think of a problems with it. In fact, in my experience, automated testing is usually a good thing. I am adding the perfbook email list in case others have advice or other guidance.

Just out of curiosty, are you thinking of automating tests of the sample code as well as of the LaTeX builds?

Thanx, Paul

#2 lore raw

Hello Paul,

Quoted 30 lines · Paul E. McKenney
Quoted 21 lines · Leonardo Brás

Hello Paul,

I am a newbie Kernel Developer, and I was already a fan of your work on memory- barriers.txt.

A couple weeks ago a friend of mine recommended reading perfbook, and sent me an older version (2011.01.02a). After reading a few pages I went on and found that the book had newer releases and is often updated and maintained with git, which got me really impressed.

(I had a lot of work gone to waste on other books I found errors on, and perfbook's git workflow just make a lot of sense to me)

Since it's a topic I am really interested in, and I noticed the book has updates from a couple days ago, I decided to install texinfo packages and compile a new version for me to start reading.

I then noticed it would be nice to keep reading the latest version whenever an update came by, so I created a gitlab-ci to re-generate the book after a new commit / push: https://gitlab.com/linux-kernel/perfbook

Quoted 7 lines

Is that ok if I keep this gitlab repository re-generating the book?

Is a gitlab-ci of any use for you?
If so, I can send it as a patch (a single .gitlab-ci.yaml file), and refine it according to your needs.

Thanks for keeping the book updated!

Quoted 8 lines

Hello, Leonardo, and glad you like the book!

On the automated CI, I cant't think of a problems with it. In fact, in my experience, automated testing is usually a good thing. I am adding the perfbook email list in case others have advice or other guidance.

Just out of curiosty, are you thinking of automating tests of the sample code as well as of the LaTeX builds?

For now it only automates the LaTeX build of perfbook.pdf, perfbook-1c.pdf and perfbook-eb.pdf, but there should be no problem automating tests too. (I mean, once I understand how to run tests.)

Quoted 2 lines

Thanx, Paul

Thank you!
Leo

#3 lore raw
Quoted 39 lines · Leonardo Brás

Hello Paul,

Quoted 36 lines · Paul E. McKenney
Quoted 21 lines · Leonardo Brás

Hello Paul,

I am a newbie Kernel Developer, and I was already a fan of your work on memory- barriers.txt.

A couple weeks ago a friend of mine recommended reading perfbook, and sent me an older version (2011.01.02a). After reading a few pages I went on and found that the book had newer releases and is often updated and maintained with git, which got me really impressed.

(I had a lot of work gone to waste on other books I found errors on, and perfbook's git workflow just make a lot of sense to me)

Since it's a topic I am really interested in, and I noticed the book has updates from a couple days ago, I decided to install texinfo packages and compile a new version for me to start reading.

I then noticed it would be nice to keep reading the latest version whenever an update came by, so I created a gitlab-ci to re-generate the book after a new commit / push: https://gitlab.com/linux-kernel/perfbook

Quoted 7 lines

Is that ok if I keep this gitlab repository re-generating the book?

Is a gitlab-ci of any use for you?
If so, I can send it as a patch (a single .gitlab-ci.yaml file), and refine it according to your needs.

Thanks for keeping the book updated!

Hello, Leonardo, and glad you like the book!

On the automated CI, I cant't think of a problems with it. In fact, in my experience, automated testing is usually a good thing. I am adding the perfbook email list in case others have advice or other guidance.

Quoted 6 lines
Quoted 2 lines

Just out of curiosty, are you thinking of automating tests of the sample code as well as of the LaTeX builds?

For now it only automates the LaTeX build of perfbook.pdf, perfbook-1c.pdf and perfbook-eb.pdf, but there should be no problem automating tests too. (I mean, once I understand how to run tests.)

Good point, building the tests should be a matter of "cd CodeSamples; make", but yes, the actual running of the tests is at the moment a matter of a bunch of random .sh scripts. I will think about the feasibility or not of adding something like "make check" to those directories.

Thanx, Paul

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20230201142318.GD2948950@paulmck-ThinkPad-P17-Gen-1

#6 lore raw
Quoted 61 lines · Paul E. McKenney
Quoted 53 lines · Leonardo Brás
Quoted 52 lines · Paul E. McKenney
Quoted 39 lines · Leonardo Brás

Hello Paul,

Quoted 36 lines · Paul E. McKenney
Quoted 21 lines · Leonardo Brás

Hello Paul,

I am a newbie Kernel Developer, and I was already a fan of your work on memory- barriers.txt.

A couple weeks ago a friend of mine recommended reading perfbook, and sent me an older version (2011.01.02a). After reading a few pages I went on and found that the book had newer releases and is often updated and maintained with git, which got me really impressed.

(I had a lot of work gone to waste on other books I found errors on, and perfbook's git workflow just make a lot of sense to me)

Since it's a topic I am really interested in, and I noticed the book has updates from a couple days ago, I decided to install texinfo packages and compile a new version for me to start reading.

I then noticed it would be nice to keep reading the latest version whenever an update came by, so I created a gitlab-ci to re-generate the book after a new commit / push: https://gitlab.com/linux-kernel/perfbook

Quoted 7 lines

Is that ok if I keep this gitlab repository re-generating the book?

Is a gitlab-ci of any use for you?
If so, I can send it as a patch (a single .gitlab-ci.yaml file), and refine it according to your needs.

Thanks for keeping the book updated!

Hello, Leonardo, and glad you like the book!

On the automated CI, I cant't think of a problems with it. In fact, in my experience, automated testing is usually a good thing. I am adding the perfbook email list in case others have advice or other guidance.

Quoted 6 lines
Quoted 2 lines

Just out of curiosty, are you thinking of automating tests of the sample code as well as of the LaTeX builds?

For now it only automates the LaTeX build of perfbook.pdf, perfbook-1c.pdf and perfbook-eb.pdf, but there should be no problem automating tests too. (I mean, once I understand how to run tests.)

Good point, building the tests should be a matter of "cd CodeSamples; make", but yes, the actual running of the tests is at the moment a matter of a bunch of random .sh scripts. I will think about the feasibility or not of adding something like "make check" to those directories.

Quoted 6 lines
Quoted 1 line

Thanx, Paul

That would be much easier to test!

Whenever you have a desired testing procedure to run, please let me know so I can add to the Gitlab-CI.

Quoted 6 lines

It is on my list, thank you!

In the meantime, simple build testing of the code samples would be of value.

Thanx, Paul

Done!
I just sent a patch on the list. It assumes the CodeSample test will come before the PDF building.

Please let me know if I got anything wrong.

Best regards,
Leo

#7 lore raw
Quoted 67 lines · Leonardo Brás
Quoted 66 lines · Paul E. McKenney
Quoted 53 lines · Leonardo Brás
Quoted 52 lines · Paul E. McKenney
Quoted 39 lines · Leonardo Brás

Hello Paul,

Quoted 36 lines · Paul E. McKenney
Quoted 21 lines · Leonardo Brás

Hello Paul,

I am a newbie Kernel Developer, and I was already a fan of your work on memory- barriers.txt.

A couple weeks ago a friend of mine recommended reading perfbook, and sent me an older version (2011.01.02a). After reading a few pages I went on and found that the book had newer releases and is often updated and maintained with git, which got me really impressed.

(I had a lot of work gone to waste on other books I found errors on, and perfbook's git workflow just make a lot of sense to me)

Since it's a topic I am really interested in, and I noticed the book has updates from a couple days ago, I decided to install texinfo packages and compile a new version for me to start reading.

I then noticed it would be nice to keep reading the latest version whenever an update came by, so I created a gitlab-ci to re-generate the book after a new commit / push: https://gitlab.com/linux-kernel/perfbook

Quoted 7 lines

Is that ok if I keep this gitlab repository re-generating the book?

Is a gitlab-ci of any use for you?
If so, I can send it as a patch (a single .gitlab-ci.yaml file), and refine it according to your needs.

Thanks for keeping the book updated!

Hello, Leonardo, and glad you like the book!

On the automated CI, I cant't think of a problems with it. In fact, in my experience, automated testing is usually a good thing. I am adding the perfbook email list in case others have advice or other guidance.

Quoted 6 lines
Quoted 2 lines

Just out of curiosty, are you thinking of automating tests of the sample code as well as of the LaTeX builds?

For now it only automates the LaTeX build of perfbook.pdf, perfbook-1c.pdf and perfbook-eb.pdf, but there should be no problem automating tests too. (I mean, once I understand how to run tests.)

Good point, building the tests should be a matter of "cd CodeSamples; make", but yes, the actual running of the tests is at the moment a matter of a bunch of random .sh scripts. I will think about the feasibility or not of adding something like "make check" to those directories.

Quoted 6 lines
Quoted 1 line

Thanx, Paul

That would be much easier to test!

Whenever you have a desired testing procedure to run, please let me know so I can add to the Gitlab-CI.

It is on my list, thank you!

In the meantime, simple build testing of the code samples would be of value.

Quoted 7 lines
Quoted 1 line

Thanx, Paul

Done!
I just sent a patch on the list. It assumes the CodeSample test will come before the PDF building.

Please let me know if I got anything wrong.

I will give is a try! I am assuming that github (as opposed to gitlab) will ignore this, but if github complains when I try pushing to it, I might need to revert your patch. Let's see what happens...

Thanx, Paul