Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,17 @@ <h2>Linux Kernel Ring 0 Visualization</h2>
<script src="/static/js/flow-ui.js?v=8"></script>
<script src="/static/js/isolation-ui.js?v=10"></script>
<script src="/static/js/process-files-ui.js?v=1"></script>
<script src="/static/js/ui-chrome.js?v=1"></script>
<script src="/static/js/ui-chrome.js?v=2"></script>
<script src="/static/js/active-connections.js?v=4"></script>
<script src="/static/js/nginx_files.js?v=6"></script>
<script src="/static/js/right-semicircle-menu.js?v=48"></script>
<script src="/static/js/right-semicircle-menu.js?v=49"></script>
<script src="/static/js/kernel-dna.js?v=34"></script>
<script src="/static/js/network-stack.js?v=33"></script>
<script src="/static/js/network-stack.js?v=41"></script>
<script src="/static/js/devices-belt.js?v=23"></script>
<script src="/static/js/aes-ref.js?v=2"></script>
<script src="/static/js/crypto-belt.js?v=59"></script>
<script src="/static/js/aes-ref.js?v=3"></script>
<script src="/static/js/crypto-belt.js?v=61"></script>
<script src="/static/js/security-belt.js?v=13"></script>
<script src="/static/js/filesystem-map.js?v=10"></script>
<script src="/static/js/filesystem-map.js?v=18"></script>
<script src="/static/js/kernel-context-menu.js?v=29"></script>
<script>
// Debug: Check if classes are loaded
Expand Down
5 changes: 5 additions & 0 deletions kernel_ai/api/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
("/network-stack-realtime", "network_stack_realtime", h.network_stack_realtime, None),
("/devices-realtime", "devices_realtime", h.devices_realtime, None),
("/filesystem-blocks", "filesystem_blocks", h.filesystem_blocks, None),
("/ext4-anatomy", "ext4_anatomy", h.ext4_anatomy, None),
("/ext4-journal", "ext4_journal", h.ext4_journal, None),
("/hot-files", "hot_files", h.hot_files, None),
("/path-walk", "path_walk", h.path_walk, None),
("/isolation-context", "isolation_context", h.isolation_context, None),
("/process/<int:pid>/threads", "get_process_threads", h.get_process_threads, None),
("/process/<int:pid>/cpu", "get_process_cpu", h.get_process_cpu, None),
Expand All @@ -34,6 +38,7 @@
("/crypto-aes-demo", "crypto_aes_demo", h.crypto_aes_demo, None),
("/security-realtime", "security_realtime", h.security_realtime, None),
("/processes-realtime", "processes_realtime", h.processes_realtime, None),
("/scheduler-pelt", "scheduler_pelt", h.scheduler_pelt, None),
("/frontend-logs", "ingest_frontend_logs", h.ingest_frontend_logs, ["POST", "OPTIONS"]),
("/proc-graph", "proc_graph", h.get_proc_graph, None),
("/process-files", "process_files", h.get_process_files, None),
Expand Down
10 changes: 10 additions & 0 deletions kernel_ai/http/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@
from kernel_ai.http.api_handlers.network_system import (
active_connections,
devices_realtime,
ext4_anatomy,
ext4_journal,
filesystem_blocks,
hot_files,
isolation_context,
network_stack_realtime,
path_walk,
traceroute_info,
)
from kernel_ai.http.api_handlers.processes import (
Expand All @@ -34,6 +38,7 @@
get_processes,
get_processes_detailed,
processes_realtime,
scheduler_pelt,
)
from kernel_ai.http.api_handlers.security_logs import (
crypto_aes_demo,
Expand All @@ -47,7 +52,11 @@
"crypto_aes_demo",
"crypto_realtime",
"devices_realtime",
"ext4_anatomy",
"ext4_journal",
"filesystem_blocks",
"hot_files",
"path_walk",
"get_execution_context",
"get_ipc_links",
"get_proc_graph",
Expand All @@ -73,6 +82,7 @@
"nginx_files",
"process_kernel_map",
"processes_realtime",
"scheduler_pelt",
"security_realtime",
"sentry_test",
"syscalls_realtime",
Expand Down
16 changes: 16 additions & 0 deletions kernel_ai/http/api_handlers/network_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,19 @@ def filesystem_blocks():

def isolation_context():
return api_json(_system_view_service.get_isolation_context)


def ext4_anatomy():
return api_json(lambda: _system_view_service.get_ext4_file_anatomy(request.args.get("path")))


def ext4_journal():
return api_json(_system_view_service.get_ext4_journal)


def hot_files():
return api_json(_system_view_service.get_hot_files)


def path_walk():
return api_json(lambda: _system_view_service.get_path_walk(request.args.get("path")))
5 changes: 5 additions & 0 deletions kernel_ai/http/api_handlers/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from kernel_ai.services import process_inspect as _process_inspect_service
from kernel_ai.services import process_timeline as _process_timeline_service
from kernel_ai.services import processes as _processes_service
from kernel_ai.services import scheduler_pelt as _scheduler_pelt_service


def get_processes():
Expand Down Expand Up @@ -76,6 +77,10 @@ def processes_realtime():
return api_json(_processes_service.collect_processes_realtime)


def scheduler_pelt():
return api_json(_scheduler_pelt_service.collect_scheduler_pelt)


def get_proc_graph():
return api_json(_processes_service.get_proc_graph_data, error_extra={"nodes": [], "edges": []})

Expand Down
12 changes: 12 additions & 0 deletions kernel_ai/http/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ def linux_memory_subsystem_html():
return redirect("/linux-memory-subsystem", code=301)


def linux_network_subsystem_page():
return render_template("linux-network-subsystem.html")


def network_page_legacy():
return redirect("/linux-network-subsystem", code=301)


def linux_network_subsystem_html():
return redirect("/linux-network-subsystem", code=301)


def health_check():
return jsonify(
{
Expand Down
Loading
Loading