Linux / Kernel
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 (19 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 19 components.
  • 461 files, 266,447 lines of code (100.0% vs. main code).
  • "ROOT" is biggest, containing 21.37% of code.
  • "entry" is smallest, containing 0.15% of code.


ROOT56937 LOC (21%) 106 files
trace51136 LOC (19%) 64 files
bpf37592 LOC (14%) 50 files
sched26241 LOC (9%) 36 files
rcu13548 LOC (5%) 18 files
time12905 LOC (4%) 34 files
events11650 LOC (4%) 6 files
locking11296 LOC (4%) 31 files
cgroup9166 LOC (3%) 12 files
irq9095 LOC (3%) 25 files
power6711 LOC (2%) 14 files
debug5682 LOC (2%) 11 files
dma4120 LOC (1%) 13 files
printk3345 LOC (1%) 9 files
futex2132 LOC (<1%) 6 files
kcsan1712 LOC (<1%) 7 files
livepatch1585 LOC (<1%) 9 files
gcov1184 LOC (<1%) 6 files
entry410 LOC (<1%) 4 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-02-02 14:42