Re: [PATCH v10 bpf-next 00/14] bpf: Add d_path helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 07, 2020 at 11:45:45AM +0200, Jiri Olsa wrote:
> hi,
> adding d_path helper function that returns full path for
> given 'struct path' object, which needs to be the kernel
> BTF 'path' object. The path is returned in buffer provided
> 'buf' of size 'sz' and is zero terminated.
> 
>   long bpf_d_path(struct path *path, char *buf, u32 sz);
> 
> The helper calls directly d_path function, so there's only
> limited set of function it can be called from.
> 
> The patchset also adds support to add set of BTF IDs for
> a helper to define functions that the helper is allowed
> to be called from.
> 
> Also available at:
>   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
>   bpf/d_path
> 
> v10 changes:
>   - added few acks
>   - returned long instead of int in bpf_d_path helper [Alexei]
>   - used local cnt variable in d_path test [Andrii]
>   - fixed tyo in d_path comment [Andrii]
>   - get rid of reg->off condition in check_func_arg [Andrii]

bpf-next is closed.
I still encourage developers to submit new features for review, but please tag
them as RFC, so the purpose is clear to both maintainers and authors.



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux