* Recent perf-tools does not compile on alpha
@ 2022-10-08 3:53 matoro
2022-10-10 14:54 ` James Clark
0 siblings, 1 reply; 2+ messages in thread
From: matoro @ 2022-10-08 3:53 UTC (permalink / raw)
To: linux-perf-users
Hi! Recent versions of the perf tools (5.19) do not compile on alpha
with the following errors:
util/unwind-libdw.c: In function ‘memory_read’:
util/unwind-libdw.c:161:62: error: ‘PERF_REG_SP’ undeclared (first use
in this function); did you mean ‘PERF_MEM_S’?
161 | ret = perf_reg_value(&start, &ui->sample->user_regs,
PERF_REG_SP);
|
^~~~~~~~~~~
|
PERF_MEM_S
util/unwind-libdw.c:161:62: note: each undeclared identifier is reported
only once for each function it appears in
util/unwind-libdw.c: In function ‘unwind__get_entries’:
util/unwind-libdw.c:255:53: error: ‘PERF_REG_IP’ undeclared (first use
in this function); did you mean ‘PERF_REGS_MAX’?
255 | err = perf_reg_value(&ip, &data->user_regs,
PERF_REG_IP);
| ^~~~~~~~~~~
|
PERF_REGS_MAX
Wondering if anybody has some pointers about where these definitions
should be coming from on alpha?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Recent perf-tools does not compile on alpha
2022-10-08 3:53 Recent perf-tools does not compile on alpha matoro
@ 2022-10-10 14:54 ` James Clark
0 siblings, 0 replies; 2+ messages in thread
From: James Clark @ 2022-10-10 14:54 UTC (permalink / raw)
To: matoro, linux-perf-users
On 08/10/2022 04:53, matoro wrote:
> Hi! Recent versions of the perf tools (5.19) do not compile on alpha
> with the following errors:
>
> util/unwind-libdw.c: In function ‘memory_read’:
> util/unwind-libdw.c:161:62: error: ‘PERF_REG_SP’ undeclared (first use
> in this function); did you mean ‘PERF_MEM_S’?
> 161 | ret = perf_reg_value(&start, &ui->sample->user_regs,
> PERF_REG_SP);
> |
> ^~~~~~~~~~~
> |
> PERF_MEM_S
> util/unwind-libdw.c:161:62: note: each undeclared identifier is reported
> only once for each function it appears in
> util/unwind-libdw.c: In function ‘unwind__get_entries’:
> util/unwind-libdw.c:255:53: error: ‘PERF_REG_IP’ undeclared (first use
> in this function); did you mean ‘PERF_REGS_MAX’?
> 255 | err = perf_reg_value(&ip, &data->user_regs, PERF_REG_IP);
> | ^~~~~~~~~~~
> | PERF_REGS_MAX
>
> Wondering if anybody has some pointers about where these definitions
> should be coming from on alpha?
Is CONFIG_LIBDW_DWARF_UNWIND being set in the autodetection when it
wasn't before? You can override it with NO_LIBDW_DWARF_UNWIND=1
Other than that, you'd have to add
linux/tools/perf/arch/alpha/include/perf_regs.h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-10 14:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-08 3:53 Recent perf-tools does not compile on alpha matoro
2022-10-10 14:54 ` James Clark
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.