From: Eli Zaretskii <eliz@gnu.org>
To: "Schimpe, Christina" <christina.schimpe@intel.com>
Cc: gdb-patches@sourceware.org, felix.willgerodt@intel.com,
luis.machado@arm.com
Subject: Re: [PATCH v4 2/2] LAM: Enable tagged pointer support for watchpoints.
Date: Mon, 08 Jul 2024 14:42:46 +0300 [thread overview]
Message-ID: <867cdw1555.fsf@gnu.org> (raw)
In-Reply-To: <SN7PR11MB763863DF2F90BC9F837C2F0CF9DA2@SN7PR11MB7638.namprd11.prod.outlook.com> (christina.schimpe@intel.com)
> From: "Schimpe, Christina" <christina.schimpe@intel.com>
> CC: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>, "Willgerodt,
> Felix" <felix.willgerodt@intel.com>, "luis.machado@arm.com"
> <luis.machado@arm.com>
> Date: Mon, 8 Jul 2024 08:52:17 +0000
>
> > > I will try to come up with a section on tagged addresses/pointers in the
> > manual.
> >
> > Thank you.
>
> Hi Eli,
>
> I discussed this internally and we still wonder whether we need to document tagged
> pointers. I think I missed to mention one important detail, which is that tagged
> pointers are no gdb concept but a generic concept:
> https://en.wikipedia.org/wiki/Tagged_pointer.
>
> Do we need to document such generic concepts, too?
I think this discussion moved too far off the main issue here. So let
me try to bring the main issue back into focus.
The original NEWS item said just this:
* GDB now supports watchpoints for tagged data pointers on amd64.
Let's put ourselves in the shoes of a GDB user, which just happens to
run and debug programs on an amd64 machine, and try to imagine what
will such a user understand from this entry. Here are some questions
which I think will come to his/her mind:
. are all the pointers in my programs "tagged"?
. if not all pointers are "tagged", when and how will I ever
encounter "tagged" pointers in my programs?
. what didn't work with "tagged" pointers until now and will work
henceforth?
We need to give some hints to the readers, either in NEWS or in the
manual, that will help them answer these questions. One possibility
is just to place the Wikipedia URL in NEWS. Another possibility is to
mention "the Intel (R) linear address masking (LAM) feature", which
you so abundantly refer to in the commit log and in the comments, but
neither in NEWS nor in the manual, and maybe tell how to
"LAM57-enable" a program and why is that useful. (If this is
described somewhere on the Internet, a URL could replace the actual
description.)
IOW, please compare the detailed and clear text you wrote for the
commit log message and the code comments with what you decided to put
in NEWS. The text in the log basically answers all the questions I
think a reader will ask him/herself, and even includes what seems to
be important details, like which LAM widths are now supported. Yet
none of that ended up in our docs. Why not have in NEWS and/or in the
manual at least some of that helpful and clearly described
information?
Thanks.
next prev parent reply other threads:[~2024-07-08 11:43 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-04 10:17 [PATCH v4 0/2] Add amd64 LAM watchpoint support Schimpe, Christina
2024-07-04 10:17 ` [PATCH v4 1/2] gdb: Make tagged pointer support configurable Schimpe, Christina
2024-07-04 10:17 ` [PATCH v4 2/2] LAM: Enable tagged pointer support for watchpoints Schimpe, Christina
2024-07-04 12:37 ` Willgerodt, Felix
2024-07-04 12:52 ` Eli Zaretskii
2024-07-04 13:05 ` Schimpe, Christina
2024-07-04 13:15 ` Schimpe, Christina
2024-07-04 14:06 ` Eli Zaretskii
2024-07-05 8:53 ` Schimpe, Christina
2024-07-05 10:47 ` Eli Zaretskii
2024-07-08 8:52 ` Schimpe, Christina
2024-07-08 11:42 ` Eli Zaretskii [this message]
2024-07-08 14:25 ` Schimpe, Christina
2024-07-08 14:53 ` Eli Zaretskii
2024-07-08 14:57 ` Schimpe, Christina
2024-07-04 14:02 ` Eli Zaretskii
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=867cdw1555.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=christina.schimpe@intel.com \
--cc=felix.willgerodt@intel.com \
--cc=gdb-patches@sourceware.org \
--cc=luis.machado@arm.com \
/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