mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* perf patches needed for 4.19 stable
@ 2022-09-13  7:17 Rolf Eike Beer
  0 siblings, 0 replies; only message in thread
From: Rolf Eike Beer @ 2022-09-13  7:17 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Mark Rutland, Alexander Shishkin, Jiri Olsa, Namhyung Kim
  Cc: linux-perf-users, linux-kernel

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

Greetings,

I had to compile perf for a 4.19 kernel with gcc 10.4 and glibc 2.36. It 
failed because some patches seem to be missing there.

I have identified these 2 at least:

ebcb9464a2ae3a547e97de476575c82ece0e93e2
perf env: Do not return pointers to local variables

d08c84e01afa7a7eee6badab25d5420fa847f783
perf sched: Cast PTHREAD_STACK_MIN to int as it may turn into 
sysconf(__SC_THREAD_STACK_MIN_VALUE)

The former was introduced in 5.7, the latter in 5.14, so backports to 5.4 and 
5.10 may also be missing.

At the end the build still has failed because of this:

In file included from /opt/emlix/master/sysroot/usr/include/stdio.h:906,
                 from /tmp/e2/build/linux-4.19.254/tools/lib/traceevent/event-
parse.h:25,
                 from util/session.c:5:
In function 'printf',
    inlined from 'regs_dump__printf' at util/session.c:968:3,
    inlined from 'regs__printf' at util/session.c:996:2:
/opt/emlix/master/sysroot/usr/include/bits/stdio2.h:86:10: warning: '%-5s' 
directive argument is null [-Wformat-overflow=]
   86 |   return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack 
());

I was not able to identify a patch for that, so I went with WERROR=0, but 
maybe someone knows how to get that fixed as well.

If you agree that these should be added to stable please either send them 
there or tell me to do so.

Regards,

Eike
-- 
Rolf Eike Beer, emlix GmbH, https://www.emlix.com
Fon +49 551 30664-0, Fax +49 551 30664-11
Gothaer Platz 3, 37083 Göttingen, Germany
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160
Geschäftsführung: Heike Jordan, Dr. Uwe Kracke – Ust-IdNr.: DE 205 198 055

emlix - smart embedded open source

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 313 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-13  7:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-13  7:17 perf patches needed for 4.19 stable Rolf Eike Beer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®