Re: [PATCH v2 14/19] gendwarfksyms: Add symbol versioning

2024-09-12 Thread Petr Pavlu
On 9/11/24 18:03, Sami Tolvanen wrote: > On Wed, Sep 11, 2024 at 3:08 AM Petr Pavlu wrote: >> On 8/15/24 19:39, Sami Tolvanen wrote: >> More importantly, it made me think which names are included in the CRC >> calculation and which ones are omitted. >> >> If I'm looking correctly, names of structs

Re: [PATCH v2 14/19] gendwarfksyms: Add symbol versioning

2024-09-11 Thread Sami Tolvanen
Hi Petr, On Wed, Sep 11, 2024 at 3:08 AM Petr Pavlu wrote: > > On 8/15/24 19:39, Sami Tolvanen wrote: > > +static inline unsigned long partial_crc32(const char *s, unsigned long crc) > > +{ > > + while (*s) > > + crc = partial_crc32_one(*s++, crc); > > + return crc; > > +} > >

Re: [PATCH v2 14/19] gendwarfksyms: Add symbol versioning

2024-09-11 Thread Petr Pavlu
On 8/15/24 19:39, Sami Tolvanen wrote: > Add a basic CRC32 implementation adapted from genksyms, and produce > matching output from symtypes strings in type_map. > > Signed-off-by: Sami Tolvanen > --- > scripts/gendwarfksyms/Makefile| 1 + > scripts/gendwarfksyms/crc32.c | 69

[PATCH v2 14/19] gendwarfksyms: Add symbol versioning

2024-08-15 Thread Sami Tolvanen
Add a basic CRC32 implementation adapted from genksyms, and produce matching output from symtypes strings in type_map. Signed-off-by: Sami Tolvanen --- scripts/gendwarfksyms/Makefile| 1 + scripts/gendwarfksyms/crc32.c | 69 ++ scripts/gendwarfksyms/crc32.h