All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: Juergen Gross <jgross@suse.com>
Cc: "Stefano Stabellini" <sstabellini@kernel.org>,
	"Wei Liu" <wl@xen.org>,
	"Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com>,
	"George Dunlap" <George.Dunlap@eu.citrix.com>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Ian Jackson" <ian.jackson@eu.citrix.com>,
	"Tim Deegan" <tim@xen.org>, "Julien Grall" <julien.grall@arm.com>,
	xen-devel@lists.xenproject.org,
	"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [Xen-devel] [PATCH v3 5/5] xen: modify several static locks to unique names
Date: Tue, 3 Sep 2019 17:09:17 +0200	[thread overview]
Message-ID: <2a7b100c-2403-6bf2-7a73-3f2b0a2461a4@suse.com> (raw)
In-Reply-To: <75a52d2d-a482-c62d-8d30-b02aba00d349@suse.com>

On 03.09.2019 17:03, Juergen Gross wrote:
> On 03.09.19 16:53, Jan Beulich wrote:
>> On 29.08.2019 12:18, Juergen Gross wrote:
>>> In order to have unique names when doing lock profiling several local
>>> locks "lock" need to be renamed.
>>
>> But these are all named simply "lock" for a good reason, including
>> because they're all function scope symbols (and typically the
>> functions are all sufficiently short). The issue stems from the
>> dual use of "name" in
>>
>> #define _LOCK_PROFILE(name) { 0, #name, &name, 0, 0, 0, 0, 0 }
>>
>> so I'd rather suggest making this a derivation of a new
>>
>> #define _LOCK_PROFILE_NAME(lock, name) { 0, #name, &lock, 0, 0, 0, 0, 0 }
>>
>> if there's no other (transparent) way of disambiguating the names.
> 
> This will require to use a different DEFINE_SPINLOCK() variant, so e.g.
> DEFINE_SPINLOCK_LOCAL(), which will then include the needed "static" and
> add "@<func>" to the lock profiling name. Is this okay?

To be frank - not really. I dislike both, and would hence prefer to
stick to what there is currently, until someone invents a transparent
way to disambiguate these. I'm sorry for being unhelpful here.

Jan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2019-09-03 15:09 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-29 10:18 [Xen-devel] [PATCH v3 0/5] enhance lock debugging Juergen Gross
2019-08-29 10:18 ` [Xen-devel] [PATCH v3 1/5] xen/spinlocks: in debug builds store cpu holding the lock Juergen Gross
2019-09-03 14:11   ` Jan Beulich
2019-09-03 14:31     ` Juergen Gross
2019-09-03 14:56       ` Jan Beulich
2019-08-29 10:18 ` [Xen-devel] [PATCH v3 2/5] xen: add new CONFIG_DEBUG_LOCKS option Juergen Gross
2019-09-03 14:13   ` Jan Beulich
2019-08-29 10:18 ` [Xen-devel] [PATCH v3 3/5] xen: print lock profile info in panic() Juergen Gross
2019-09-03 14:22   ` Jan Beulich
2019-09-03 14:38     ` Juergen Gross
2019-09-03 15:06       ` Jan Beulich
2019-08-29 10:18 ` [Xen-devel] [PATCH v3 4/5] xen: modify lock profiling interface Juergen Gross
2019-09-03 14:46   ` Jan Beulich
2019-09-04  8:30     ` Juergen Gross
2019-09-04  8:57       ` Jan Beulich
2019-08-29 10:18 ` [Xen-devel] [PATCH v3 5/5] xen: modify several static locks to unique names Juergen Gross
2019-09-03 14:53   ` Jan Beulich
2019-09-03 15:03     ` Juergen Gross
2019-09-03 15:09       ` Jan Beulich [this message]
2019-09-04  5:08         ` Juergen Gross
2019-09-04  8:25         ` Juergen Gross
2019-09-04  8:40           ` Jan Beulich
2019-09-04  8:47             ` Juergen Gross
2019-09-04  8:51               ` Jan Beulich
2019-09-04 10:55                 ` Juergen Gross
2019-09-04  8:58             ` Andrew Cooper
2019-09-04  9:11               ` Juergen Gross
2019-09-04  9:15                 ` Andrew Cooper
2019-09-04  9:52                   ` Juergen Gross

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=2a7b100c-2403-6bf2-7a73-3f2b0a2461a4@suse.com \
    --to=jbeulich@suse.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jgross@suse.com \
    --cc=julien.grall@arm.com \
    --cc=konrad.wilk@oracle.com \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=tim@xen.org \
    --cc=wl@xen.org \
    --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.