From: Andreas Arnez <arnez@linux.ibm.com>
To: John Baldwin <jhb@FreeBSD.org>
Cc: Omair Javaid <omair.javaid@linaro.org>,
gdb-patches@sourceware.org, palves@redhat.com,
prudo@linux.ibm.com, arnez@linux.vnet.ibm.com,
peter.griffin@linaro.org, Ulrich.Weigand@de.ibm.com,
kieran@linuxembedded.co.uk
Subject: Re: [RFC PATCH 0/6] Support for Linux kernel thread aware debug
Date: Wed, 30 Jan 2019 15:02:00 -0000 [thread overview]
Message-ID: <m38sz2i3yx.fsf@oc0404454431.ibm.com> (raw)
In-Reply-To: <6c29e316-f1cb-ee65-bc0b-844cba5d74ad@FreeBSD.org> (John Baldwin's message of "Tue, 29 Jan 2019 09:30:14 -0800")
On Tue, Jan 29 2019, John Baldwin wrote:
> I just have one minor suggestion / comment about file names. I maintain
> FreeBSD kernel patches for gdb out-of-tree (for various reasons), and those
> patches use some similar things (e.g. a different OSABI). My comment has
> to do with the filenames. Other osabi-specific files tend to use more
> verbose names such as 'linux-arm-nat.c'. I wonder if it makes sense to
> spell out linux here as well. I have been using 'arm-fbsd-kern.c' as a
> complement to 'arm-fbsd-tdep.c' for the kernel gdbarch. The architecture
> independent files follow the patter 'fbsd-k*.c' (e.g. fbsd-kld.c for modules
> and fbsd-kthr.c for thread enumeration), but I would be happy to move those
> to something like 'fbsd-kern-ld.c' and 'fbsd-kern-thr.c'. For your current
> patchset that might mean something like 'linux-kern-tdep.c' instead of
> 'lk-tdep.c'. I would also be fine with 'arm-linux-kern-tdep.c' instead of
> 'arm-linux-kern.c' perhaps if other folks feel like that is more consistent.
I believe it was me who originated the "lk" notation, so maybe I should
provide my few cents on its rationale here:
1. The string "linux" in GDB source file names specifically means
"GNU/Linux user-space runtime". For instance, "aarch64-linux-tdep.c"
implements target-dependent code for GNU/Linux user-space programs on
AArch64 hardware. Thus "linux" is reserved for this particular purpose,
and collisions should better be avoided.
2. In principle, the Linux kernel runtime is just another runtime
environment, like the GNU/Linux user-space runtime or the QNX Neutrino
runtime (say). And since all runtimes are named by a single short word
so far ("linux", "nbsd", "nto", etc.), it seems consistent to use the
same scheme for the Linux kernel runtime as well. In particular this
means not to use any dashes or underscores.
3. The runtime name becomes part of many identifiers. Any additional
characters make these identifiers more bulky. Thus, in my opinion, the
name should be as short as possible.
If "lk" is not considered clear enough, alternatives could be something
like "lxk", "lkr" (for "Linux kernel runtime"), "linuxk", or "linuxkr".
For the FreeBSD kernel I suggest "fbsdk" or "fbsdkr".
--
Andreas
next prev parent reply other threads:[~2019-01-30 15:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-29 5:03 Omair Javaid
2019-01-29 5:03 ` [RFC PATCH 3/6] Add scoped_restore_regcache_ptid Omair Javaid
2019-01-29 5:03 ` [RFC PATCH 1/6] Convert substitute_path_component to C++ Omair Javaid
2019-01-29 5:03 ` [RFC PATCH 2/6] Add libiberty/concat styled concat_path function Omair Javaid
2019-01-29 5:04 ` [RFC PATCH 4/6] Linux kernel debug infrastructure and target Linux kernel Omair Javaid
2019-01-29 17:50 ` John Baldwin
2019-01-31 11:43 ` Philipp Rudo
2019-01-31 16:14 ` Philipp Rudo
2019-02-04 9:35 ` Omair Javaid
2019-02-05 14:15 ` Philipp Rudo
2019-02-08 8:53 ` Omair Javaid
2019-01-29 5:04 ` [RFC PATCH 5/6] Linux kernel thread awareness Arm target support Omair Javaid
2019-01-29 5:04 ` [RFC PATCH 6/6] Linux kernel thread awareness AArch64 " Omair Javaid
[not found] ` <6c29e316-f1cb-ee65-bc0b-844cba5d74ad@FreeBSD.org>
2019-01-30 15:02 ` Andreas Arnez [this message]
2019-02-04 9:13 ` [RFC PATCH 0/6] Support for Linux kernel thread aware debug Omair Javaid
2019-02-04 17:52 ` John Baldwin
2019-02-08 8:54 ` Omair Javaid
2019-03-07 11:50 ` Omair Javaid
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=m38sz2i3yx.fsf@oc0404454431.ibm.com \
--to=arnez@linux.ibm.com \
--cc=Ulrich.Weigand@de.ibm.com \
--cc=arnez@linux.vnet.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=jhb@FreeBSD.org \
--cc=kieran@linuxembedded.co.uk \
--cc=omair.javaid@linaro.org \
--cc=palves@redhat.com \
--cc=peter.griffin@linaro.org \
--cc=prudo@linux.ibm.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