Re: [PATCH v3 0/5] tracing/probes: uaccess: Add support user-space access

From: Alexei Starovoitov
Date: Wed Feb 27 2019 - 17:32:47 EST


On Wed, Feb 27, 2019 at 11:42:15PM +0900, Masami Hiramatsu wrote:
>
> For perf-probe, we can add some attribute for each argument
> which indicate that the variable in user space. But still
> we can not decide it automatically by DWARF since __user attribute
> is not transrated to DWARF attribute.

clang has partial support for __attribute__((noderef, address_space(1)))
We'll work on patches to make it complete and pass __user attribute
all the way to debug info.

If somebody can work with gcc folks to do the same that would be awesome.