Why the CPU Steal is showing in negative? [closed]
As I am using the Amazon Linux AMI release 2017.09 in which there are some services are running and when I see the CPU utilization its shows normal and CPU steal is showing the negative. Kernel Details...
View ArticleLinux kernel module crash debug: general protection fault: 0000 [#1] SMP
I have a kernel module for splitting incoming rtp packets and merging rtp outgoing packets. The program crashes once in 2/3 days. If would be very convenient for me if its possible to find the exact...
View ArticleLinux Kernel generate compile-commands.json for module
The problem: Most of macro definition and even header files are not looked up by an IDE because include path is not specified in the IDE configuration. It inhibits autocompletion and navigation. Here...
View ArticleHow to map a specific physical address range of linux kernel, of size less...
I am working on a solution similar to user-space input/output drivers(Linux kernel UIO).Linux kernel UIOI intend to map a specific physical address range(starting at specific physical address) from...
View Articlecan anybody highlight VM_MAYWRITE flags usage
Can any body throw some light on VM_MAYWRIE and VM_WRITE flags. Why is_cow_mapping code check VM_MAYWRITE to check whether mapping is COW and not VM_WRITE flag. And also why do_mmap , sets all...
View ArticleHow to design a system for offline updates of Linux systems that use Debian's...
I'm developing an update / upgrade service with an offline SDK for Linux devices.The idea is to replicate the update / upgrade Linux services into an offline device. The "offline" device is capable to...
View ArticleHow do I kill a process in dotnet core properly?
So I'm building a .NET core 3.1 app and I am opening a few processes, I want to keep track of them and kill them when I click certain buttons, however.. I was reading that killing a process based on an...
View ArticleKernel module check valid user memory
I am trying to validate a pointer passed from user to a kernel module to use in a read() system call of a char device driver.In the module I've tried to use access_ok() to verify that the memory...
View ArticleHow to load data/file into memory on system start up so it can be used by a...
I am trying to inference and need to load multiple models on program start which takes a lot of time and sometimes even fails. I was wondering is there a way to load the model files into memory on...
View Articlegcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
first I install cross-tool, then I build the toolchain, then I want to build the kernel but While compiling kernel 2.6.34 for RAM, repeatedly got the error...
View ArticleUbuntu apt-get source linux-image-$(uname -r) does not gives me kernel source
I am trying to download linux kernel source code for ubuntu distribution. I did this directly in my home folder.apt-get source linux-image-$(uname -r) Reading package lists... Done Picking...
View ArticleHow nl80211 library & cfg80211 work?
I want to learn about how nl80211 and cfg80211 works in detail. Function flow, how nl80211 interact with network tools like wpa_supplicant, iw. Plz suggest me some useful links or books to refer.
View ArticleFind global references to struct element using VIM
I'm working with the Linux Kernel, so I installed ctags and cscope to help me find references. However, there's no way to find references to struct->element.Then, I installed coc.nvim and ccls to...
View ArticleGetting an error (Warning: "sys_ni_syscall" undefined) when compiling a...
I have an assignment and need to compile a module for a linux virtual machine, we are asked to use ubuntu 14.04 specifically but when I execute the make command it throws this error (and of course when...
View ArticleKERN_DEBUG printk's at bootup not displayed in QEMU console?
I am trying to debug and optimise the kernel bootup time. I am using QEMU for emulating the kernel. I have placed a few of my printk's with KERN_DEBUG but they are not being displayed on any of the...
View Articlehow to run perl in kbuild makefile
I'm trying to add new feature to the current build. to compile, I've add obj-y += mynewfeature.c into the makefile in the same directory. But i still need to generate or update existing header file...
View ArticleWindows Linux subsystem : Cannot connect to the Docker daemon at...
I tried to install docker over windows10 Linux subsystem ubuntu 18.04 LTS but not able to run the docker container please find the result of some commands Followed the official docker document to...
View ArticleWhat happens on schedule() in Linux kernel?
I am trying to understand where the process goes when schedule() is called and how it gets back on CPU. For example, if process tries to gain a lock on down(), it calls schedule(). It goes off the...
View ArticleHow to setup GDB for kernel debug to view serial port activity?
Good day all! I have an issue in code that I cannot find.See hereIs it possible to setup GDB to see what the UART is getting in incoming serial data?Thanks!
View ArticleArguments in syscall intercept using loadable kernel module seem to be broken
First post so I apologize for the possibly low quality explanation.I was trying to write a loadable kernel module that does nothing but intercept syscalls to SYS_open, print the arguments to KERN_INFO...
View Article