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
68 changes: 12 additions & 56 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Linux Kernel Visualization
# Ring 0 - Linux Kernel Visualization

🚀 **Real-time Linux Kernel Visualization** - Interactive visualization of Linux kernel processes and system calls in real-time.
**Real-time Linux Kernel Visualization** - Interactive visualization of Linux kernel.

## 📁 Project Structure
## Project Structure

```
/opt/ring0/kernel-ai/
Expand All @@ -27,21 +27,6 @@
└── docs/ # Documentation (planned)
```

## 🛠 Technologies

### Backend
- **Flask** - Python web framework
- **psutil** - System information
- **OpenAI API** - Process to kernel subsystem mapping (optional)

### Frontend
- **D3.js** - Interactive visualization
- **Vanilla JavaScript** - Main logic
- **CSS3** - Styling
- **HTML5** - Markup

## 🚀 Installation and Setup

### 1. Install dependencies
```bash
cd /opt/ring0/kernel-ai
Expand All @@ -61,7 +46,7 @@ sudo systemctl reload nginx
### 4. Access the application
Open your browser and navigate to: `http://your-server-ip/`

## 📊 API Endpoints
## API Endpoints

### Real-time System Calls
```
Expand Down Expand Up @@ -89,28 +74,7 @@ Returns:
- Process to kernel subsystem connections
- Kernel files used by processes

### Health Check
```
GET /health
```
Returns application status and system information

## 🎨 Interface Features

### Visual Elements
- **Central Circle** - Main interface element
- **Tag Icons** - 8 icons around the center
- **Panels** - Left and right information panels
- **System Calls** - Table in the left panel
- **Processes** - Circles with kernel subsystems
- **Connection Curves** - Decorative lines

### Responsiveness
- Automatic scaling when window size changes
- State preservation during redraw
- Optimization for different resolutions

## 🔧 Configuration
## Configuration

### Environment Variables
```bash
Expand Down Expand Up @@ -146,7 +110,7 @@ server {
}
```

## 📈 Monitoring
## Monitoring

### Logs
- Flask logs: `app.py` (stdout/stderr)
Expand All @@ -159,7 +123,7 @@ server {
- Process count
- System calls

## 🧪 Testing
## Testing

### API Testing
```bash
Expand All @@ -182,7 +146,7 @@ curl http://localhost:5001/static/css/main.css
curl http://localhost:5001/static/js/main.js
```

## 🔄 Development
## Development

### Code Structure
- **Modularity** - Each component in separate file
Expand Down Expand Up @@ -214,26 +178,18 @@ curl http://localhost:5001/static/js/main.js
- Optimize API requests
- Use caching

## 📝 License
## License

MIT License - see LICENSE file for details.

## 🤝 Contributing
## Contributing

1. Fork the repository
2. Create feature branch
3. Make changes
4. Add tests
5. Create Pull Request

## 📞 Support

- **Issues**: GitHub Issues
- **Email**: your-email@example.com
- **Documentation**: `/docs/`

---

**Version**: 1.0.0
**Last Updated**: August 2025
**Author**: Linux Kernel Team
**Version**: 0.0.1
**Last Updated**: August 2025
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script src="https://d3js.org/d3.v7.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap" rel="stylesheet">

<!-- Our styles -->
<!-- Styles -->
<link rel="stylesheet" href="/static/css/main.css">

<!-- Meta tags -->
Expand All @@ -23,7 +23,7 @@
<svg></svg>
</div>

<!-- Our scripts -->
<!-- Scripts -->
<script src="/static/js/syscalls.js"></script>
<script src="/static/js/main.js"></script>
</body>
Expand Down
4 changes: 2 additions & 2 deletions templates/organized_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script src="https://d3js.org/d3.v7.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap" rel="stylesheet">

<!-- Our styles -->
<!-- Styles -->
<link rel="stylesheet" href="/static/css/main.css">

<!-- Meta tags -->
Expand All @@ -23,7 +23,7 @@
<svg></svg>
</div>

<!-- Our scripts -->
<!-- Scripts -->
<script src="/static/js/syscalls.js"></script>
<script src="/static/js/main.js"></script>
</body>
Expand Down