Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The info command is used to print kernel function signature. This commit makes the output conform to the kernel code style. Before this fix: ``` $ sudo ./ksnoop info sk_alloc struct sock * sk_alloc(struct net * net, int family, gfp_t priority, struct proto * prot, int kern); $ sudo ./ksnoop info dma_buf_end_cpu_access $ sudo ./ksnoop info array_map_alloc_check int array_map_alloc_check(unionbpf_attr *attr); ``` After this fix: ``` $ sudo ./ksnoop info sk_alloc struct sock *sk_alloc(struct net *net, int family, gfp_t priority, struct proto *prot, int kern); $ sudo ./ksnoop info dma_buf_end_cpu_access int dma_buf_end_cpu_access(struct dma_buf *dmabuf, enum dma_data_direction direction); $ sudo ./ksnoop info array_map_alloc_check int array_map_alloc_check(union bpf_attr *attr); ``` Signed-off-by: Hengqi Chen <[email protected]>
- Loading branch information