Re: [PATCH] kbuild: Use uname for LINUX_COMPILE_HOST detection

2020-10-21 Thread Masahiro Yamada
istribution. > > ./scripts/mkcompile_h: line 38: hostname: command not found > > Use `uname -n` instead, which is more likely to be available (and > mandated by standards). > > Signed-off-by: Chris Down > Cc: Masahiro Yamada > Cc: Michal Marek > Cc: lin

[PATCH] kbuild: Use uname for LINUX_COMPILE_HOST detection

2020-10-20 Thread Chris Down
`hostname` may not be present on some systems as it's not mandated by POSIX/SUSv4. This isn't just a theoretical problem: on Arch Linux, `hostname` is provided by `inetutils`, which isn't part of the base distribution. ./scripts/mkcompile_h: line 38: hostname: command not found

Re: Changing the ARM variant reported by 'uname -m'

2017-10-18 Thread Willy Tarreau
Hi Tuomas, On Wed, Oct 18, 2017 at 06:07:22PM +0300, Tuomas Tynkkynen wrote: > Hi, > > For our distro (NixOS), I've experimented with building packages for ARMv6 > on ARMv7 hardware. This has generally worked fine, except that some build > scripts (in coreutils, for example

Changing the ARM variant reported by 'uname -m'

2017-10-18 Thread Tuomas Tynkkynen
Hi, For our distro (NixOS), I've experimented with building packages for ARMv6 on ARMv7 hardware. This has generally worked fine, except that some build scripts (in coreutils, for example) notice that `uname -m` returns 'armv7l' and thus decide to e.g. add some ARMv7-spec

[tip:perf/core] perf scripting python: Add ppc64le to audit uname list

2017-08-14 Thread tip-bot for Naveen N. Rao
scripting python: Add ppc64le to audit uname list Before patch: $ uname -m ppc64le $ ./perf script -s ./scripts/python/syscall-counts.py Install the audit-libs-python package to get syscall names. For example: # apt-get install python-audit (Ubuntu) # yum install audit-libs-python

[PATCH 01/19] perf scripting python: Add ppc64le to audit uname list

2017-08-14 Thread Arnaldo Carvalho de Melo
From: "Naveen N. Rao" Before patch: $ uname -m ppc64le $ ./perf script -s ./scripts/python/syscall-counts.py Install the audit-libs-python package to get syscall names. For example: # apt-get install python-audit (Ubuntu) # yum install audit-libs-python (Fedor

Re: [PATCH 1/2] selftests: keep consistency for uname -m usage

2017-03-17 Thread Fathi Boudra
On 15 March 2017 at 17:56, Shuah Khan wrote: > Hi Fathi, > > On 03/15/2017 07:15 AM, Fathi Boudra wrote: >> powerpc selftests allow to override ARCH for cross-compilation by making >> the first ARCH assignment weak. >> Use the same approach in breakpoints, ipc and prctl

Re: [PATCH 1/2] selftests: keep consistency for uname -m usage

2017-03-15 Thread Shuah Khan
Hi Fathi, On 03/15/2017 07:15 AM, Fathi Boudra wrote: > powerpc selftests allow to override ARCH for cross-compilation by making > the first ARCH assignment weak. > Use the same approach in breakpoints, ipc and prctl tests to: > - keep uname usage consistent across selftests > -

[PATCH 1/2] selftests: keep consistency for uname -m usage

2017-03-15 Thread Fathi Boudra
powerpc selftests allow to override ARCH for cross-compilation by making the first ARCH assignment weak. Use the same approach in breakpoints, ipc and prctl tests to: - keep uname usage consistent across selftests - make it easier to cross-compile Signed-off-by: Fathi Boudra --- tools/testing

[PATCH 03/32] ver_linux: execute 'uname -a' from awk

2016-06-28 Thread Alexander Kapshuk
Execute 'uname -a' using the awk system() function. Signed-off-by: Alexander Kapshuk --- scripts/ver_linux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ver_linux b/scripts/ver_linux index 2f1d494..c509f09 100755 --- a/scripts/ver_linux +++ b/scripts

Re: [PATCH] perf tools: get version from uname(2), not /proc

2015-10-07 Thread Adrian Hunter
ath from the release >>>> from uname(2). Because we use the UNAME26 personality, we need perf to >>>> find modules located at the same path as the system tools. >>> >>> I guess it's easy to google this up, but could you >>> please state in t

Re: [PATCH] perf tools: get version from uname(2), not /proc

2015-10-07 Thread Matt Mullins
On Wed, Oct 07, 2015 at 11:19:17AM +0300, Adrian Hunter wrote: > On 07/10/15 11:18, Jiri Olsa wrote: > > On Tue, Oct 06, 2015 at 03:53:14PM -0700, Matt Mullins wrote: > >> Tools in kmod (e.g. modprobe) compose the module path from the release > >> from uname(2).

Re: [PATCH] perf tools: get version from uname(2), not /proc

2015-10-07 Thread Andi Kleen
On Tue, Oct 06, 2015 at 03:53:14PM -0700, Matt Mullins wrote: > Tools in kmod (e.g. modprobe) compose the module path from the release > from uname(2). Because we use the UNAME26 personality, we need perf to > find modules located at the same path as the system tools. May be easier to j

Re: [PATCH] perf tools: get version from uname(2), not /proc

2015-10-07 Thread Adrian Hunter
On 07/10/15 11:18, Jiri Olsa wrote: > On Tue, Oct 06, 2015 at 03:53:14PM -0700, Matt Mullins wrote: >> Tools in kmod (e.g. modprobe) compose the module path from the release >> from uname(2). Because we use the UNAME26 personality, we need perf to >> find modules located at

Re: [PATCH] perf tools: get version from uname(2), not /proc

2015-10-07 Thread Jiri Olsa
On Tue, Oct 06, 2015 at 03:53:14PM -0700, Matt Mullins wrote: > Tools in kmod (e.g. modprobe) compose the module path from the release > from uname(2). Because we use the UNAME26 personality, we need perf to > find modules located at the same path as the system tools. I guess it's

[PATCH] perf tools: get version from uname(2), not /proc

2015-10-06 Thread Matt Mullins
Tools in kmod (e.g. modprobe) compose the module path from the release from uname(2). Because we use the UNAME26 personality, we need perf to find modules located at the same path as the system tools. Signed-off-by: Matt Mullins Cc: Vinson Lee --- tools/perf/util/machine.c | 28

Re: [RFC][2/11][MANUX] Kernel compatibility : uname(2)

2014-04-15 Thread One Thousand Gnomes
> Thus, I decided to fake a Linux-like answer on this syscall, and > implement another syscall where I could put what I wanted. In practice, > I currently identify myself as "Linux 2.6.35" through uname(2), but > "Manux 0.0.5" through my uname_vect(2) syscall. &g

[RFC][2/11][MANUX] Kernel compatibility : uname(2)

2014-04-15 Thread Emmanuel Colbus
been reimplemented (keyctl(8), for example, proudly returns -ENOSYS), but the implemented ones are faithfully following the Linux specification. Well, nearly. That is, besides potential bugs (and unimplemented features), I have done one notable modification, to the uname(2) syscall. When I initially wro

[ 18/46] arm64: makefile: fix uname munging when setting ARCH on native machine

2013-01-24 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit f1b99392caf120d7533da260318fae0eb5053737 upstream. By popular demand, arch/aarch64 is now known as arch/arm64. However, uname -m (and indeed the GNU triplet) still use

[PATCH] 9p: don't use __getname/__putname for uname/aname

2012-09-07 Thread Jeff Layton
0 @@ static int v9fs_parse_options(struct v9fs_session_info *v9ses, char *opts) v9ses->afid = option; break; case Opt_uname: - match_strlcpy(v9ses->uname, &args[0], PATH_MAX); +

Re: [PATCH] Make v9fs uname and remotename parsing more robust

2008-02-24 Thread Andrew Morton
On Sun, 24 Feb 2008 09:37:23 -0600 "Eric Van Hensbergen" <[EMAIL PROTECTED]> wrote: > On Sat, Feb 23, 2008 at 2:07 AM, Andrew Morton > <[EMAIL PROTECTED]> wrote: > > > > It would be better to present this as two patches. One adds the new core > > APIs and the other uses those APIs in v9fs. Th

Re: [PATCH] Make v9fs uname and remotename parsing more robust

2008-02-24 Thread Eric Van Hensbergen
On Sat, Feb 23, 2008 at 2:07 AM, Andrew Morton <[EMAIL PROTECTED]> wrote: > > It would be better to present this as two patches. One adds the new core > APIs and the other uses those APIs in v9fs. The patches would take > separate routes into mainline. > > I guess I can sneak this one in as-i

Re: [PATCH] Make v9fs uname and remotename parsing more robust

2008-02-23 Thread Andrew Morton
gt; > > diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c > index fbb12da..e42948b 100644 > --- a/fs/9p/v9fs.c > +++ b/fs/9p/v9fs.c > @@ -135,10 +135,10 @@ static void v9fs_parse_options(struct v9fs_session_info > *v9ses) > v9ses->trans = v9fs_

[PATCH] 9p: Make uname and remotename parsing more robust

2008-02-22 Thread Markus Armbruster
9ses) v9ses->trans = v9fs_match_trans(&args[0]); break; case Opt_uname: - match_strcpy(v9ses->uname, &args[0]); + match_strlcpy(v9ses->uname, &args[0], PATH_MAX);

[PATCH] Make v9fs uname and remotename parsing more robust

2008-02-15 Thread Markus Armbruster
9ses) v9ses->trans = v9fs_match_trans(&args[0]); break; case Opt_uname: - match_strcpy(v9ses->uname, &args[0]); + match_strlcpy(v9ses->uname, &args[0], PATH_MAX);

Re: axp question 'bout uname voodoo

2007-03-20 Thread Jan Engelhardt
On Mar 20 2007 09:17, Oliver Falk wrote: > > But on i386 it reports: > [EMAIL PROTECTED] ~]$ uname -mpi > i686 i686 i386 Reports this for me: $ uname -mpi i686 athlon i386 > And I remember that it used to report alphaev67 or alphaev56... Jan -- - To unsubscribe from this list

Re: axp question 'bout uname voodoo

2007-03-20 Thread Oliver Falk
Hi Eric! On 03/19/2007 06:44 PM, Eric W. Biederman wrote: Oliver Falk <[EMAIL PROTECTED]> writes: [ ... ] The kernel uname function at least does not have fields that report processor or hardware platform. But on i386 it reports: [EMAIL PROTECTED] ~]$ uname -mpi i686 i686 i386

Re: axp question 'bout uname voodoo

2007-03-19 Thread Eric W. Biederman
Oliver Falk <[EMAIL PROTECTED]> writes: > Hi! > > We have a discussion on alpha mailinglist at the moment, because of uname > -mpi. > > AFAIK, uname -m should do some glibc call, which calls kernel, right? > > However, I have two machines: > > AS1000A: >

axp question 'bout uname voodoo

2007-03-19 Thread Oliver Falk
Hi! We have a discussion on alpha mailinglist at the moment, because of uname -mpi. AFAIK, uname -m should do some glibc call, which calls kernel, right? However, I have two machines: AS1000A: [EMAIL PROTECTED] ~]# uname -mpi && cat /proc/cpuinfo | grep model alpha alpha alpha c

Re: [patch] 2.4 add suffix for uname -r

2001-05-07 Thread Pavel Roskin
Hi, Keith! > A frequent requirement is to rename vmlinuz-2.x.y to 2.x.y-old or > 2.x.y.save to preserve a working kernel. But renaming the image does > not change the value of uname -r so it still tries to use modules > 2.x.y, which defeats the purpose of saving an working kernel

Re: [patch] 2.4 add suffix for uname -r

2001-05-06 Thread Russell King
On Sun, May 06, 2001 at 01:36:05AM -0700, Mike Castle wrote: > On Sun, May 06, 2001 at 10:12:17AM +0200, Lars Marowsky-Bree wrote: > > You assign a new EXTRAVERSION to the new kernel you are building, and keep the > > old kernel at the old name. > > Except that some patches (ie, RAID, -ac) use EX

Re: [patch] 2.4 add suffix for uname -r

2001-05-06 Thread Mike A. Harris
On Sun, 6 May 2001, Keith Owens wrote: >>On Sun, 6 May 2001, Keith Owens wrote: >>>A frequent requirement is to rename vmlinuz-2.x.y to 2.x.y-old or >>>2.x.y.save to preserve a working kernel. >> >>I don't see how this patch is necessary when we have >>"EXTRAVERSION" available. Change EXTRAVERSI

Re: [patch] 2.4 add suffix for uname -r

2001-05-06 Thread Lars Marowsky-Bree
On 2001-05-06T01:36:05, Mike Castle <[EMAIL PROTECTED]> said: > On Sun, May 06, 2001 at 10:12:17AM +0200, Lars Marowsky-Bree wrote: > > You assign a new EXTRAVERSION to the new kernel you are building, and keep the > > old kernel at the old name. > > Except that some patches (ie, RAID, -ac) u

Re: [patch] 2.4 add suffix for uname -r

2001-05-06 Thread Mike Castle
On Sun, May 06, 2001 at 10:12:17AM +0200, Lars Marowsky-Bree wrote: > You assign a new EXTRAVERSION to the new kernel you are building, and keep the > old kernel at the old name. Except that some patches (ie, RAID, -ac) use EXTRAVERSION. There needs to be a new variable, say USERVERSION, that wi

Re: [patch] 2.4 add suffix for uname -r

2001-05-06 Thread Lars Marowsky-Bree
On 2001-05-06T17:45:06, Keith Owens <[EMAIL PROTECTED]> said: > You already have a working kernel which you want to rename to use as a > backup version. Changing EXTRAVERSION and recompiling builds a new > kernel and adds uncertainty about whether the kernel still works - did > you change any

Re: [patch] 2.4 add suffix for uname -r

2001-05-06 Thread Keith Owens
On Sun, 6 May 2001 03:35:34 -0400 (EDT), "Mike A. Harris" <[EMAIL PROTECTED]> wrote: >On Sun, 6 May 2001, Keith Owens wrote: >>A frequent requirement is to rename vmlinuz-2.x.y to 2.x.y-old or >>2.x.y.save to preserve a working kernel. > >I don't see how this patch is necessary when we have >"EXT

Re: [patch] 2.4 add suffix for uname -r

2001-05-06 Thread Mike A. Harris
On Sun, 6 May 2001, Keith Owens wrote: >Date: Sun, 06 May 2001 17:15:45 +1000 >From: Keith Owens <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Content-Type: text/plain; charset=us-ascii >Subject: [patch] 2.4 add suffix for uname -r > >A frequent requirement is to rename

[patch] 2.4 add suffix for uname -r

2001-05-05 Thread Keith Owens
A frequent requirement is to rename vmlinuz-2.x.y to 2.x.y-old or 2.x.y.save to preserve a working kernel. But renaming the image does not change the value of uname -r so it still tries to use modules 2.x.y, which defeats the purpose of saving an working kernel. Normally I would say that this

Re: uname ?

2001-04-18 Thread Erik Mouw
e machine type CPU TYPE. The choices for CPU TYPE are the same as for `-mcpu'. Moreover, specifying `-march=CPU TYPE' implies `-mcpu=CPU TYPE'. > I started rebuilding SRPMS with these as optflags, just to find out that > some packages don't use optflags, but u

uname ?

2001-04-18 Thread Dragan Milenkovic
Few days ago, I found an incredibly usable option in latest gcc versions. gcc -march=k6 -mcpu=k6 I started rebuilding SRPMS with these as optflags, just to find out that some packages don't use optflags, but use -march=`uname -m`. So ... What about uname -m and non-Intel processors? Is

Re: "uname -p" prints unknown for Athlon K7 optimized kernel?

2001-04-15 Thread Andreas Schwab
"Mr. Shannon Aldinger" <[EMAIL PROTECTED]> writes: |> On Sun, 15 Apr 2001, it was written: |> |> > elfie:~ # uname -p |> > unknown |> > |> > elfie:~ # uname -a |> > Linux elfie 2.4.3 #1 Fri Apr 13 21:08:29 CEST 2001 i586 unknown |> >

Re: "uname -p" prints unknown for Athlon K7 optimized kernel?

2001-04-15 Thread Mr. Shannon Aldinger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 15 Apr 2001, it was written: > elfie:~ # uname -p > unknown > > elfie:~ # uname -a > Linux elfie 2.4.3 #1 Fri Apr 13 21:08:29 CEST 2001 i586 unknown > I get the same on my Sun Ultra 1, and various x86 boxes. I'm sure t

Re: "uname -p" prints unknown for Athlon K7 optimized kernel?

2001-04-15 Thread Heinz Diehl
On Sun Apr 15 2001, joker wrote: > i have this problem using intel 850mhz and 333mhz > any know where to get update version of uname ? http://www.tuxfinder.com Btw: elfie:~ # uname --version uname (GNU sh-utils) 2.0.11 Written by David MacKenzie. Copyright (C) 2000 Free Software Foun

Re: "uname -p" prints unknown for Athlon K7 optimized kernel?

2001-04-14 Thread joker
i have this problem using intel 850mhz and 333mhz any know where to get update version of uname ? Ishikawa wrote: > Hi, > > On my athlong K7 optimized kernel prints "unknown" fir oricessir type. > (I have not realized what this "unknown" stood for until today.) &

Re: "uname -p" prints unknown for Athlon K7 optimized kernel?

2001-04-14 Thread xcp
uname has printed unknown for the cpu vendor for as long as I can remember. There is a hacked uname.c distributed as "nuname" that works for cyrix intel and amd, maybe others. http://cds.duke.edu/pub/sunsite/utils/shell/nuname-1.0.tar.gz I *think* Cyrix shows up as CyrixInstead Dual

Re: "uname -p" prints unknown for Athlon K7 optimized kernel?

2001-04-14 Thread Bart Trojanowski
BTW this is also the case for AMD-K6-3 and I would imagine all other AMD processors. B. On Sun, 15 Apr 2001, Ishikawa wrote: > Hi, > > On my athlong K7 optimized kernel prints "unknown" fir oricessir type. > (I have not realized what this "unknown" stood

"uname -p" prints unknown for Athlon K7 optimized kernel?

2001-04-14 Thread Ishikawa
Hi, On my athlong K7 optimized kernel prints "unknown" fir oricessir type. (I have not realized what this "unknown" stood for until today.) #uname -p unknown #uname -a Linux duron 2.4.3 #2 Fri Apr 6 04:38:35 JST 2001 i686 unknown It would be nice to have the processor na

[PATCH] /lib/modules/`uname -r`/build is not created

2000-11-30 Thread Eric Lammerts
Since 2.2.18pre20, the symlink /lib/modules/`uname -r`/build is not created because of a non-escaped $ in Makefile. Patch: --- linux/Makefile.orig Fri Dec 1 01:39:24 2000 +++ linux/Makefile Fri Dec 1 01:39:32 2000 @@ -335,7 +335,7 @@ MODLIB=$(INSTALL_MOD_PATH)/lib/modules

RE: uname

2000-11-22 Thread David Schwartz
> Little question about 'uname'. Does it read data from kernel, /proc or > get its data from other source ? 'strace' was made to answer questions like this. DS - To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: uname

2000-11-22 Thread Alex Belits
On Thu, 23 Nov 2000, J . A . Magallon wrote: > Little question about 'uname'. Does it read data from kernel, /proc or > get its data from other source ? uname(1) utility calls uname(2) syscall. -- Alex --

uname

2000-11-22 Thread J . A . Magallon
Hi everyone. Little question about 'uname'. Does it read data from kernel, /proc or get its data from other source ? uname info page: $ uname -a Linux hayley 1.0.4 #3 Thu May 12 18:06:34 1994 i486 my system: uname -a Linux werewolf 2.2.18-pre23-vm #3 SMP Wed Nov 22 22:33:53 CET