Linux / Include
Components & Dependencies

An overview of source code logical components.

Intro

Logical decomposition is a representation of the organization of the main source code, where every and each file is put in exactly one logical component.

  • A software system can have one or more logical decompositions.
  • A logical decomposition can be defined in two ways in Sokrates.
  • First approach is based on the folders structure. Components are mapped to folders at defined folder depth relative to the source code root.
  • Second approach is based on explicit definition of each component. In such explicit definitions, components are explicitly named and their files are selected based on explicitly defined path and content filters.
  • A logical decomposition is considered invalid if a file is selected into two or more components.This constraint is introduced in order to facilitate measuring of dependencies among components.
  • Files not assigned to any component are put into a special "Unclassified" component.
Learn more...
Logical Decompositions Overview

Analyzed system has 1 logical decomposition:

  • primary (26 components)

Logical Decomposition #1: PRIMARY

The decompositions is based on the folder structure at level 1 (relative to the source code root).

Bubble Chart | Tree Map
Components
The "primary" logical decomposition has 26 components.
  • 5,652 files, 698,731 lines of code (100.0% vs. main code).
  • "linux" is biggest, containing 47.34% of code.
  • "memory" is smallest, containing 0.01% of code.


linux330786 LOC (47%) 2505 files
uapi96872 LOC (13%) 891 files
dt-bindings68474 LOC (9%) 748 files
net58672 LOC (8%) 342 files
trace33757 LOC (4%) 152 files
sound18400 LOC (2%) 178 files
drm12667 LOC (1%) 114 files
media10758 LOC (1%) 133 files
video9765 LOC (1%) 47 files
rdma8790 LOC (1%) 41 files
soc8678 LOC (1%) 62 files
asm-generic8449 LOC (1%) 147 files
acpi8087 LOC (1%) 39 files
scsi8062 LOC (1%) 44 files
crypto4787 LOC (<1%) 80 files
xen4534 LOC (<1%) 60 files
math-emu2605 LOC (<1%) 9 files
kunit1166 LOC (<1%) 4 files
pcmcia1124 LOC (<1%) 6 files
kvm521 LOC (<1%) 6 files
keys458 LOC (<1%) 15 files
clocksource432 LOC (<1%) 7 files
ras311 LOC (<1%) 1 files
misc285 LOC (<1%) 6 files
vdso210 LOC (<1%) 14 files
memory81 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-02-02 18:09