Title :
Characterization and assessment of the linux configuration complexity
Author :
Jbara, Ahmad ; Feitelson, D.G.
Author_Institution :
Sch. of Comput. Sci. & Eng., Hebrew Univ., Jerusalem, Israel
Abstract :
The Linux kernel is configured for specific uses by manipulations of the source code during the compilation process. These manipulations are performed by the C pre-processor (CPP), based on in-line directives. Such directives, and the interleaving of multiple versions of the code that they allow, may cause difficulties in code comprehension. To better understand the effects of CPP, we perform a deep analysis of the configurability of the Linux kernel. We found significant inconsistencies between the source code and the configuration control system. Focusing on the thousands of config options appearing in the source code, we found that their distribution is heavy-tailed, with some options having more than a thousand instances in the code. Such wide use seems to imply a massive coupling between different parts of the system. However, we argue that employing a purely syntactic analysis is insufficient. By involving semantic considerations, we find that in reality the coupling induced by the very frequent options is limited. Moreover, even at the syntactic level the adverse effects of CPP are limited, as there is little nesting and the expressions controlling conditional compilation are usually very simple. But it could be even better if the configuration system undergoes a clean up. On the other hand, we found that the code controlled by CPP is very heterogeneous and may exhibit intimate mingling with non-variable code. As a result the applicability of alternative mechanisms such as aspects is hard to envision.
Keywords :
Linux; operating system kernels; C preprocessor; CPP; Linux configuration complexity; Linux kernel; massive coupling; source code; syntactic analysis; Complexity theory; Computer architecture; Conferences; Couplings; Kernel; Linux; Syntactics;
Conference_Titel :
Source Code Analysis and Manipulation (SCAM), 2013 IEEE 13th International Working Conference on
Conference_Location :
Eindhoven
DOI :
10.1109/SCAM.2013.6648179