linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Corbet <corbet@lwn.net>
To: Daniel Bristot de Oliveira <bristot@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
	John Mathew <john.mathew@unikie.com>,
	linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
	mingo@redhat.com, juri.lelli@redhat.com,
	vincent.guittot@linaro.org, dietmar.eggemann@arm.com,
	rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de,
	tsbogend@alpha.franken.de, lukas.bulwahn@gmail.com,
	x86@kernel.org, linux-mips@vger.kernel.org, tglx@linutronix.de,
	mostafa.chamanara@basemark.com
Subject: Re: [RFC PATCH 2/3] docs: scheduler: Add scheduler overview documentation
Date: Tue, 7 Apr 2020 13:40:28 -0600	[thread overview]
Message-ID: <20200407134028.44d0d16a@lwn.net> (raw)
In-Reply-To: <9614b346-a848-3e01-eea7-6237b759dad6@redhat.com>

On Wed, 1 Apr 2020 13:47:04 +0200
Daniel Bristot de Oliveira <bristot@redhat.com> wrote:

> > And that is a prime example of why I hates RST, it pretty much mandates
> > you view this with something other than a text editor.  
> 
> The good thing about the dot format is that we can convert it to many other
> formats, including text:
> 
> [bristot@x1 ~]$ cat sched_transition.dot | graph-easy 
> 
>                        *
> 
>                        |
>                        | task
>                        | forks
>                        v
>                      +------------------------------------+
>                      |              TASK_NEW              |
>                      |           (Ready to run)           |
>                      +------------------------------------+
>                        |
>                        |
>                        v
> + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -+
> '                                     int                                            '
> '                                                                                    '
> '                    +------------------------------------+                          '
> '                    |            TASK_RUNNING            |                          '
> '   +--------------> |           (Ready to run)           | <--+                     '
> '   |                +------------------------------------+    |                     '
> '   |                  |                                       |                     '
> '   |                  | schedule() calls context_switch()     | task is pre-empted  '
> '   |                  v                                       |                     '
> '   |                +------------------------------------+    |                     '
> '   |                |            TASK_RUNNING            |    |                     '
> '   |                |             (Running)              | ---+                     '
> '   | event occurred +------------------------------------+                          '
> '   |                  |                                                             '
> '   |                  |                                      - - - - - - - - - - - -+
> '   |                  |                                    '
> '   |                  | task needs to wait for event       '
> '   |                  v                                    '
> '   |                +------------------------------------+ '
> '   |                |         TASK_INTERRUPTIBLE         | '
> '   |                |        TASK_UNINTERRUPTIBLE        | '
> '   +--------------- |           TASK_WAKEKILL            | '
> '                    +------------------------------------+ '
> '                                                           '
> + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
>                        |
>                        | task exits via do_exit()
>                        v
>                      +------------------------------------+
>                      |             TASK_DEAD              |
>                      |            EXIT_ZOMBIE             |
>                      +------------------------------------+
> 
> 
> Is there a way to also add this representation, while hiding it
> when using a graphical reader?

Better, honestly, to just put the ascii art into the doc as a literal
block.  I don't see any real reason to embed Dot stuff unless there's
really no alternative.

Thanks,

jon

  parent reply	other threads:[~2020-04-07 19:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-01 10:00 [RFC PATCH 0/3] Add scheduler overview documentation John Mathew
2020-04-01 10:00 ` [RFC PATCH 1/3] docs: scheduler: Restructure scheduler documentation John Mathew
2020-04-01 10:00 ` [RFC PATCH 2/3] docs: scheduler: Add scheduler overview documentation John Mathew
2020-04-01 10:35   ` Peter Zijlstra
2020-04-01 11:47     ` Daniel Bristot de Oliveira
2020-04-01 12:26       ` Peter Zijlstra
2020-04-01 13:45         ` Valentin Schneider
2020-04-07 19:40       ` Jonathan Corbet [this message]
2020-04-08  5:35         ` Daniel Bristot de Oliveira
2020-04-01 11:54   ` Matthew Wilcox
2020-04-01 14:36     ` Jonathan Corbet
2020-04-01 12:20   ` Juri Lelli
2020-04-01 15:03   ` Valentin Schneider
2020-04-01 10:00 ` [RFC PATCH 3/3] docs: scheduler: Add introduction to scheduler context-switch John Mathew
2020-04-01 11:06   ` Peter Zijlstra
2020-04-06  5:07 ` [RFC PATCH 0/3] Add scheduler overview documentation John Mathew

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200407134028.44d0d16a@lwn.net \
    --to=corbet@lwn.net \
    --cc=bristot@redhat.com \
    --cc=bsegall@google.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=john.mathew@unikie.com \
    --cc=juri.lelli@redhat.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=lukas.bulwahn@gmail.com \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=mostafa.chamanara@basemark.com \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    --cc=tsbogend@alpha.franken.de \
    --cc=vincent.guittot@linaro.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).