[PATCH v1] print the raw kernel version when using -Xraw

shankarapailoor shankarapailoor at gmail.com
Sun Dec 9 15:44:02 UTC 2018


Hi Dmitry,

Attached is a patch which changes bpf.c to handle -Xraw, -Xverbose
when printing the kern_version field. I have added appropriate tests.
Let me know what you think.

Regards,
Shankara
On Tue, Dec 4, 2018 at 5:46 PM Dmitry V. Levin <ldv at altlinux.org> wrote:
>
> On Sun, Dec 02, 2018 at 03:14:52PM -0800, shankarapailoor wrote:
> > > Also please add a test.
> >
> > Would you suggest I add a new file that just tests PROG_LOAD or update
> > bpf.c? If I do the latter, will I need to make sure that all the
> > output from all the other tests are properly parsed under
> > -Xraw/verbose/?
>
> It's up to you whether to base new test on the whole bpf.c or just a small
> part of it.   If all you want to test is print_kernel_version, then
> testing just a part of PROG_LOAD should be OK.
>
>
> --
> ldv
> --
> Strace-devel mailing list
> Strace-devel at lists.strace.io
> https://lists.strace.io/mailman/listinfo/strace-devel



-- 
Regards,
Shankara Pailoor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v1-0001-bpf-change-kern_version-field-to-properly-handle-.patch
Type: text/x-patch
Size: 10536 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20181209/cf11d944/attachment.bin>


More information about the Strace-devel mailing list