Linux / Samples
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 (32 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 32 components.
  • 172 files, 26,848 lines of code (100.0% vs. main code).
  • "bpf" is biggest, containing 61.07% of code.
  • "watchdog" is smallest, containing 0.09% of code.


bpf16395 LOC (61%) 111 files
vfio-mdev3130 LOC (11%) 5 files
seccomp824 LOC (3%) 6 files
ftrace544 LOC (2%) 7 files
v4l537 LOC (2%) 1 files
qmi497 LOC (1%) 1 files
nitro_enclaves482 LOC (1%) 1 files
kfifo461 LOC (1%) 4 files
livepatch457 LOC (1%) 7 files
mei337 LOC (1%) 1 files
vfs329 LOC (1%) 2 files
uhid323 LOC (1%) 1 files
trace_events246 LOC (<1%) 2 files
kobject246 LOC (<1%) 2 files
configfs244 LOC (<1%) 1 files
timers236 LOC (<1%) 1 files
landlock203 LOC (<1%) 1 files
connector187 LOC (<1%) 1 files
auxdisplay168 LOC (<1%) 1 files
kprobes160 LOC (<1%) 2 files
hidraw133 LOC (<1%) 1 files
acrn115 LOC (<1%) 3 files
fanotify109 LOC (<1%) 1 files
pidfd96 LOC (<1%) 1 files
binderfs68 LOC (<1%) 1 files
kmemleak65 LOC (<1%) 1 files
rpmsg63 LOC (<1%) 1 files
hw_breakpoint52 LOC (<1%) 1 files
coresight47 LOC (<1%) 1 files
trace_printk39 LOC (<1%) 1 files
kdb32 LOC (<1%) 1 files
watchdog23 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-02-02 19:48