Re: [PATCH v2 dwarves 4/5] btf_encoder: make elf_functions.entry an elf_function list

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

 



On Mon, 2024-10-14 at 22:39 +0000, Ihor Solodrai wrote:

[...]

> > Ok, I forgot about the implementation of the find_elf_function_in_list().
> > Please ignore my previous comment and sorry for the noise.
> 
> Yeah. In case it's unclear for a reader, I'll try to explain.

You point this out original commit message.
Just too much time passed since Wednesday and I lost some context,
sorry about that.

> 
> btf_encoder__find_function() guarantees that a particular encoder gets
> an elf_function struct that it "owns": meaning no other encoder
> touches it.
> 
> Because of that btf_encoder__save_func() does not require any
> synchronization code.  We know for sure that an encoder passed to it
> is always the owner of the elf_function passed to it, and so the
> elf_function can be safely modified.
> 







[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux