Re: [PATCH bpf] bpf: preallocate a perf_sample_data per event fd

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

 



On Fri, 31 May 2019 05:26:30 +0000
Song Liu <songliubraving@xxxxxx> wrote:

> We can also do something like
> 
>    ee = kzalloc(sizeof(struct bpf_event_entry) + sizeof(struct perf_sample_data));
>    ee->sd = (void *)ee + sizeof(struct bpf_event_entry);

Or perhaps:

	ee->sd = (struct perf_sample_data *)(ee + 1);

-- Steve



[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