All of lore.kernel.org
 help / color / mirror / Atom feed
* Perf backport requests for 4.4 and 4.14
@ 2019-03-14 15:50 Daniel Díaz
  2019-03-14 17:24 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Díaz @ 2019-03-14 15:50 UTC (permalink / raw)
  To: Greg Kroah-Hartman, stable
  Cc: Guenter Roeck, wangnan0, hekuang, jolsa,
	Arnaldo Carvalho de Melo, adrian.hunter, dsahern, namhyung

Hello!

While trying to add Perf tests to LKFT [1], we encountered some
problems building it for two specific combinations:
* 4.4 and x86-64
* 4.14 and x86-32

On 4.4, this is what the build failure looks like:
| bench/mem-memcpy-x86-64-asm.S:4:10: fatal error:
../../../arch/x86/lib/memcpy_64.S: No such file or directory
|  #include "../../../arch/x86/lib/memcpy_64.S"
|           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This was fixed in mainline by commit 7d7d1bf1d1da ("perf bench: Copy
kernel files needed to build mem{cpy,set} x86_64 benchmarks"). Instead
of just cherry-picking, it requires a proper backport as it needs to
copy the existing files in 4.4, not the ones contained in that commit
(which are from v4.7-rc5+).

On 4.14, this is what the build failure looks like:
| In file included from util/libunwind/x86_32.c:33:0:
| util/libunwind/../../arch/x86/util/unwind-libunwind.c: In function
'libunwind__x86_reg_id':
| util/libunwind/../../arch/x86/util/unwind-libunwind.c:110:11: error:
'EINVAL' undeclared (first use in this function); did you mean
'UNW_EINVAL'?
|    return -EINVAL;
|            ^~~~~~
|            UNW_EINVAL

This was fixed by 44df1afdb174 ("perf tools: Fix compile error with
libunwind x86"); it applies cleanly on top of v4.14.106.

Thanks and greetings!

Daniel Díaz
daniel.diaz@linaro.org

[1] https://lkft.linaro.org/about/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Perf backport requests for 4.4 and 4.14
  2019-03-14 15:50 Perf backport requests for 4.4 and 4.14 Daniel Díaz
@ 2019-03-14 17:24 ` Greg Kroah-Hartman
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2019-03-14 17:24 UTC (permalink / raw)
  To: Daniel Díaz
  Cc: stable, Guenter Roeck, wangnan0, hekuang, jolsa,
	Arnaldo Carvalho de Melo, adrian.hunter, dsahern, namhyung

On Thu, Mar 14, 2019 at 09:50:36AM -0600, Daniel Díaz wrote:
> Hello!
> 
> While trying to add Perf tests to LKFT [1], we encountered some
> problems building it for two specific combinations:
> * 4.4 and x86-64
> * 4.14 and x86-32
> 
> On 4.4, this is what the build failure looks like:
> | bench/mem-memcpy-x86-64-asm.S:4:10: fatal error:
> ../../../arch/x86/lib/memcpy_64.S: No such file or directory
> |  #include "../../../arch/x86/lib/memcpy_64.S"
> |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> This was fixed in mainline by commit 7d7d1bf1d1da ("perf bench: Copy
> kernel files needed to build mem{cpy,set} x86_64 benchmarks"). Instead
> of just cherry-picking, it requires a proper backport as it needs to
> copy the existing files in 4.4, not the ones contained in that commit
> (which are from v4.7-rc5+).

Ok, can you create a backported version of this?  Or just a "sync the
kernel headers with perf" patch is good, I think we need that for all of
the LTS branches as I haven't been paying attention to that, sorry.

> On 4.14, this is what the build failure looks like:
> | In file included from util/libunwind/x86_32.c:33:0:
> | util/libunwind/../../arch/x86/util/unwind-libunwind.c: In function
> 'libunwind__x86_reg_id':
> | util/libunwind/../../arch/x86/util/unwind-libunwind.c:110:11: error:
> 'EINVAL' undeclared (first use in this function); did you mean
> 'UNW_EINVAL'?
> |    return -EINVAL;
> |            ^~~~~~
> |            UNW_EINVAL
> 
> This was fixed by 44df1afdb174 ("perf tools: Fix compile error with
> libunwind x86"); it applies cleanly on top of v4.14.106.

Now queued up, thanks!

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-14 17:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-14 15:50 Perf backport requests for 4.4 and 4.14 Daniel Díaz
2019-03-14 17:24 ` Greg Kroah-Hartman

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.