All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: Jan Beulich <jbeulich@suse.com>, Juergen Gross <jgross@suse.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: xentrace buffer size, maxcpus and online cpus
Date: Fri, 16 Jun 2023 13:47:08 +0200	[thread overview]
Message-ID: <20230616134708.6b3c6964.olaf@aepfle.de> (raw)
In-Reply-To: <1b99e58d-338c-02af-eeab-00d691337d00@suse.com>

[-- Attachment #1: Type: text/plain, Size: 705 bytes --]

Wed, 31 May 2023 11:05:52 +0200 Jan Beulich <jbeulich@suse.com>:

> As said before, num_online_cpus() will under-report for the purpose
> here, as CPUs may have been brought offline, and may be brought online
> again later (independent of the use of "maxcpus=").

It turned out, commit 74584a367051bc0d6f4b96fd360fa7bc6538fc39 broke
the expected behavior. But to me it is unclear what bug was fixed by
this commit.

If I read alloc_trace_bufs correctly, it already operates on online
cpus. And __trace_var will do nothing if called on a cpu which was
not online, t_bufs will likely be NULL.

To me it looks like commit 74584a367051bc0d6f4b96fd360fa7bc6538fc39
could be reverted.


Olaf

[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2023-06-16 11:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-30  7:58 xentrace buffer size, maxcpus and online cpus Olaf Hering
2023-05-30  8:41 ` Jan Beulich
2023-05-30 20:06   ` Olaf Hering
2023-05-31  9:05     ` Jan Beulich
2023-06-16 11:47       ` Olaf Hering [this message]
2023-06-16 11:52         ` Jan Beulich
2023-06-16 14:22           ` George Dunlap
2023-06-16 15:37             ` Olaf Hering
2023-06-16 16:08               ` Andrew Cooper
2023-06-19 10:16                 ` Olaf Hering
2023-06-19 11:14                   ` Andrew Cooper
2023-06-19 10:13             ` Olaf Hering
2023-06-19 10:22               ` Jan Beulich

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=20230616134708.6b3c6964.olaf@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=jbeulich@suse.com \
    --cc=jgross@suse.com \
    --cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.