[LTP] [PATCH v5 1/3] Refactor regen.sh script to generate syscalls

Cyril Hrubis chrubis@suse.cz
Wed Oct 30 18:43:36 CET 2024


Hi!
> > This will generate multiple fallback definitions, one per architecture
> > for common syscall, there was a good reason why these files were parsed
> > by awk with sort -u
> I wrote the code a few weeks ago, so I needed to read it again to 
> understand the reason.
> 
> If you take a look at the drop_bad_entries() and generate_tables() you 
> will see that `sort` command is used to remove duplicates and to sort 
> the entire list per architecture.

No no, this is the code that generates the actuall LTP header and what
you do here is:

	for each architecture:
		for each syscall in architecture:
			generate fallback with invalid value


And what you need to do is:

	read all syscall names for all architectures and do sort -u then
	generate fallback with invalid value


-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list