Open marcosps opened 1 month ago
Please check if this issue remains after c9e4aa50125388192176582ff828b36d17654a15
Note that clang-extract generating long code is not necessary a bug, but of course we can implement optimizations to reduce code size.
It still returns the same error, and currently it increased the number of LoC to ~1000. But either way it's still broken, so I believe that we can ignore the number of lines for now.
When creating the livepatch using klp-ccp for file
fs/proc/cmdline.c
functioncmdline_proc_show
generates a file of about ~40 LoC, while when generating with clang-extract generates about ~900 LoC. This can be checked on upstream by running the following command:Also, it still generates codes that doesn't compile, for example:
Please let me know if you need more information about it how to reproduce it.