Energy Aware Scheduler: what is the purpose of cpu_capacity?
I'm trying to understand the EAS arm implementation on fair.c, but I can't understand the difference from those:cpu_capacity, defined on kernel/sched/sched.h :: struct rq cpu_capacity_orig, defined on...
View ArticleHow to find the root device name of a debootstrap image
I'm creating a ubuntu 20.04 QEMU image with debootstrap (debootstrap --arch amd64 focal .). However, when I tried to boot it with a compiled Linux kernel, it failed to boot:[ 0.678611] Kernel panic -...
View ArticleKernal in Jupyter Notebook Dies Since I Modified Paths
Jupyter notebook was working fine for me just yesterday.I use a Windows system, and I just edited my environmental variables for using PSCP. After I added pscp as a path, my jupyter notebook kernel...
View ArticleNotebooks on EMR (AWS): Failed to start kernel
I am creating a notebook with the built-in option from "Amazon EMR" following the steps in the official documentationEverything as defaultEMR-Cluster created with the notebook-WizzardAfter starting...
View ArticleHow can I solve Tinycore Linux recompile kernel error
I tried to recompile the tinycorelinux kernel to support the overlay file systemOperating environment:system: CentOS Linux release 7.9.2009 (Core)kernel version: 5.4.105 x86_64running in virtualbox...
View ArticleLinux module compilation using multiple threads / jobs
When trying to compile a Linux module using -j2 i am getting the following error:make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.What is the correct way to parallel...
View ArticleWhat does the "Ki" in "KiSelectNextThread" stand for? (Windows Kernel)
I was reading the book Windows Internals 6th Edition Part 1, Chapter 5, section on "Thread Selection" and it states the following:"Whenever a logical processor needs to pick the next thread to run, it...
View ArticleeBPF: how to get the socket associated to a sock from a `struct __sk_buff`
I am currently writing an eBPF program in C to track egress network packets using tc-bpf. The program has its definition as follows:SEC("classifier")int bpf_tc_sample(struct __sk_buff *skb) { [...]...
View ArticleHow do I display the current disk IO queue length on Linux? [closed]
I am working on a new IO scheduler for the Linux Kernel. I am trying to see if anyone knows of a tool that prints out total number of outstanding IO requests (Disk IO queue) in Linux?I would be working...
View ArticleDereferencing pointer to imcomplete type in linux terminal
So I'm trying to make a new system call in Red Hat 2.4.20 for a project that I've been working on. And for the I've created a C file to try the system call works or not and I've been getting the same...
View Articlekernel module compilation error of macro for_each_process
I am trying to compile a program to list tasks linearly, such that if you run the command ps -el should have the same or similar output. my textbook says:"In the Linux kernel, the for_each_process()...
View ArticleWhat are the alignments referred to when discussing the strings section of a...
I'm trying to write a program to expose the arguments of other pids on macOS. I've made the KERN_PROCARGS2sysctl, but it turns out that everyone and their dog use this wrong. Including Apple's ps, and...
View ArticleI am trying to write an assembly [closed]
https://github.com/torvalds/linux/blob/master/arch/arm64/kernel/head.SWhat kind of study should I study?
View ArticleDebug windows kernel before it goes in repair mode?
I am debugging windows kernel with windbg, but the problem is that when windows goes to repair mode when it detect an error during booting, and goes to repair mode, i don't attach to kernel at all to...
View Articlekernel: how to find all threads from a process's task_struct?
Given a task struct for a process or a thread, what's the idiom of iterating through all other threads belonging to the same process?
View ArticleKernel Mode DLL Injection ERROR: Unable to parse imports
In c++ I am trying Inject a Dll file from Kernel Mode Driver to csgo.exeWhen I try to inject Windows Apps like notepad.exe it works but games it don't. Tried x86 and x64 DLL files both are not worksI...
View ArticleHow to build kernel.ccp, linker.ld and boot.asm to bin file [closed]
I want to write a simple operating system but I had a problem compiling it.Here are my files:kernel.cppboot.asmlinker.ldAnd I don't know how to put it together.Please help me.
View ArticleUbuntu won't boot: Kernel Panic - Not Syncing Attemptted to kill init
I have Ubuntu 20.04 and windows installed in a dual boot. Suddenly my ubuntu won't boot and shows this errorend Kernel Panic - not syncing: Attempted to kill init I've tried several solutions:at grub...
View ArticleCan I separate compile binary in opencl like this way?
cl_program prog_cl;;cl_program pprogram_head;std::ifstream srcFile("kernel.cl");string srcProg(istreambuf_iterator<char>(srcFile), (istreambuf_iterator<char>()));const char* src =...
View Articlei386-elf-_g++ install ubuntu
I am trying to write an OS kernel and I need a certain dependency for compiling the assembly to an bin. The dependency is i386-elf-_g++. I cannot find any resources for installing it on ubuntu online...
View Article