Re: [PATCH] perf parse-events: Reduce casts around bp_addr

2020-09-28 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 25, 2020 at 03:01:03PM +0200, Jiri Olsa escreveu: > On Thu, Sep 24, 2020 at 05:39:03PM -0700, Ian Rogers wrote: > > perf_event_attr bp_addr is a u64. parse-events.y parses it as a u64, but > > casts it to a void* and then parse-events.c casts it back to a u64. > > Rather than all the

Re: [PATCH] perf parse-events: Reduce casts around bp_addr

2020-09-25 Thread Jiri Olsa
On Thu, Sep 24, 2020 at 05:39:03PM -0700, Ian Rogers wrote: > perf_event_attr bp_addr is a u64. parse-events.y parses it as a u64, but > casts it to a void* and then parse-events.c casts it back to a u64. > Rather than all the casts, change the type of the address to be a u64. > This removes an

[PATCH] perf parse-events: Reduce casts around bp_addr

2020-09-24 Thread Ian Rogers
perf_event_attr bp_addr is a u64. parse-events.y parses it as a u64, but casts it to a void* and then parse-events.c casts it back to a u64. Rather than all the casts, change the type of the address to be a u64. This removes an issue noted in: