It is strongly recommended that students who want to apply to the strace project for the GSoC submit a relatively small code-related patch to the strace project as part of their application. Think of these microprojects as the "Hello, world" of getting involved with the strace project; the coding aspect of the change can be relatively simple, but to make the change the student has to become familiar with many of the practical aspects of working on the strace project.

strace development is based on sending successive versions of patches or patch series to the mailing list until they are considered good and correct by the reviewers and Dmitry V. Levin, the strace maintainer, who will merge them. This process usually takes quite some time. By sending drafts of your microproject patches to the mailing list long before the deadline, you can show us that you are willing and able to work well using the strace development process.

It is *expected* that what you send will need several rounds of reviews and discussions. If you are not sure at all about a patch you can put [RFC/PATCH] at the beginning of its subject.

Consider a sample email thread which shows how a developer proposed a change and a patch series to implement it. The problem being solved, the design of the proposed solution, and the implementation of that design were all reviewed and discussed, and after several iterations an improved version of the patch was accepted into our codebase. As a GSoC student, you will be playing the role of the developer and engaging in a similar discussion. Get familiar with the flow, need for clarity on both sides (i.e. you need to clearly defend your design, and need to ask clarifications when questions/suggestions you are offered are not clear enough), the pace at which the discussion takes place, and the general tone of the discussion, to learn what is expected of you.

To complete a microproject, you will have to go through approximately the following steps:

The coding part of the microproject should be relatively small (say, up to one day). It's advisable to have your patch accepted into master by the time of your formal application, this way you can demonstrate that you have a basic level of competence, the ability to interact with the other strace developers, and can complete tasks.

When you submit your patch, please mention that you plan to apply for the GSoC. This will ensure that we take special care not to overlook your application among the large pile of others.

Students: Please attempt only ONE microproject. We want quality, not quantity! (Also, it takes work to collect the ideas, and it would be nice to have enough microprojects for everybody.) If you've already done a microproject and are itching to do more, then get involved in other ways, like writing new tests, finding and fixing other problems in the code, or improving the documentation or code comments, or helping to review other people's patches on the mailing list, or answering questions on the mailing list or in IRC, etc. In short, start doing things that other strace developers do!

Ideas for microprojects

The following are just ideas. Any small code-related change would be suitable. Just remember to keep the change small! It is much better for you to finish a small but complete change than to try something too ambitious and not get it done.

Most of the common syscalls are usually parsed pretty well, but there's a big room for improvement regarding various ioctl command classes and arch-specific system calls.

A new parser, being new code, is expected to be supplied with relevant tests.

Examples of system calls: pciconfig_*; sys_debug_setcontext, swapcontext, rtas on power (the latter two, however, are SPU-specific and it could be quite hard to verify their usage) . Generally, if a syscall has printargs as its decoder and there's no good reason for it (like, the syscall is deprecated, or printargs does good enough job for decoding its arguments), it's a possible candidate for a new decoder. The other possibility is some newly introduced system calls (for example, in 5.6: openat2, pidfd_getfd) and/or system call sub-commands (PR_[GS]ET_IO_FLUSHER of the prctl syscall, new IORING_REGISTER_* commands of the io_uring_register syscall, new BPF_MAP_*_BATCH commands of the bpf syscall).

Examples of ioctl commands: GPIO_*, LIRC_*, USBDEVFS_*.

Example of netlink protocols: CAN, RDMA, L2TP, DEVLINK, ETHTOOL.

Add a test to the test suite

Add a test for a syscall that's not yet covered or not fully covered by the test suite. See for a general idea what's covered and what's not, especially for files that have no or little code coverage (ioctl command parsers tend to be not covered, but they are not the only ones). As virtually every GSoC project expects writing some tests, the experience of extending test suite would be useful anyway.

Most of the tests in strace's test suite are currently generated; their generation is performed by tests/ script from the information present in tests/ file. Please refer to strace's commit log for examples of new test implementations.

Extend -e trace=class syntax with new classes

strace currently supports desc, file, ipc, memory, network, process, pure, signal, and various stat- and statfs-related syscall classes. Additional classes might be useful, e.g. all open-like syscalls, all syscalls dealing with uid/gid, etc. Note that the newly added class is ought to be non-trivial, i.e. not easily covered with various specification features, such as -e trace=/ (regular expression specification). This was discussed in this list already, so please see the mailing list archive.

Try to fix some bugs

You can use list of bugs on GitHub and feature requests page as starting points.

How to find other ideas for microprojects

If you don't like for some reason the above microprojects or if you just want more choice, you may find other ideas for microprojects by searching the mailing list or the code base itself. In the code base you could search the code itself or the tests (in the "tests" directory).

When you find something you are interested to work on, please ask first on the mailing list if it's worth doing and if it's appropriate for a microproject before starting to work on what you find. Even if it looks straightforward, there could be hidden reasons why it is too difficult or just inappropriate.

MicroProjects (last edited 2020-02-26 00:33:46 by DmitryLevin)