3 Errors when installing linux headers
I am using Crostini on my Chromebook, and I tried to install the Linux header that applies to my kernel version:sudo apt install linux-headers-$(uname -r)This is the result:Reading package lists......
View ArticleReset ipython kernel
I was wondering if there is a way to restart the ipython kernel without closing it, like the kernel restart function that exists in the notebook. I tried %reset but that doesn't seem to clear the imports.
View ArticleHow to eliminate Kernel Error in Jupyter notebook - anaconda3?
Traceback (most recent call last): File "C:\Users\bOnGs\anaconda3\lib\site-packages\tornado\web.py", line 1699, in _execute result = await result File...
View ArticleHow to smooth 3D data set based on a given axis?
I have a 3D data set. X1 and X2 are contentious variables and the X3 (Outcome variable) is binary. The data are shown in the figure.I would like to smooth the data (kind of local averaging)3D data...
View Articlememory map adress to function call
TLDR:Is it possible to map an adresspace to a function call in a kernel module?So similar to mmap. But mmap is for userspace and will only call the functions if you access the next...
View ArticleIs there any way of restarting the kernel safely without losing things saved...
I can't import statsmodels.api in Jupyter Notebook anymore. I thought that it requires updating statsmodels.api. Then I typed "Conda update statsmodels.api". Then, the message comes up below....
View ArticleHow to enable dump_stack() in linux kernel?
I am trying to build a new syscall that calls dump_stack(). How do I enable dump_stack() in the first place? Which config files and macros do i have to change?
View Articlehow or which file to modify in the CPUID emulation code in KVM to report back...
Is this the correct linux kernel code to modify - how can i make the change to emulate CPUID code and which function i need to change. thank you#include <linux/kvm_host.h>#include...
View ArticleHow to use -V option in perf probe?
I'm trying to print a value of variable in specific function using perf. So I tried perf probe with -V option, but I got error message like this.# perf probe -V tcp_sendmsgFailed to find the path for...
View Articleioremap returns NULL
I'm trying to create a customised UART driver for Raspberry PI.I try to ioremap the MMIO. But ioremap returns always NULL.#define UART_REG_BASE_ADDR 0x7E20100pUart = ioremap(UART_REG_BASE_ADDR,...
View ArticleHow does the Linux kernel temporarily disable x86 SMAP in copy_from_user?
I want to know how the Linux kernel disables x86 SMAP when executing the copy_from_user() function. I tried to find something in source code, but I failed.Supervisor Mode Access Prevention (SMAP) is a...
View ArticleWhy is my python loop giving a syntax error after updating the kernel?
I have a for loop that is generating files with two columns. It's been working just fine for months now. I use spyder as my python environment. I opened spyder about a week ago and it said it was...
View ArticleIs there any built in library for linear kernel in scikit learn like RBF, SE?
I want to multiply linear kernel with RBF for a dataset but finding no way to implement linear kernel. How can I implement the linear kernel here.For example RBF, SE can be used in Scikit learn like...
View ArticlePatching lksctp RPM in linux
I am using a homegrown customized Linux that is a derivative of Oracle Linux 6 but I need to pickup all the patches from the lksctp-tools-1.0.17-2.el7.src.rpm and patch in my lksctp-tools-1.0.11-1 rpm...
View ArticleHow can I swap contents of two text files with kernel system calls
Here is my poor attempt://open:#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>//raad, write, exit:#include <unistd.h>#include...
View Articleerror: initialization from incompatible pointer type...
I am getting the following error on my kernel code in linux for file operations.Could you help me identify what's going wrong here?Code:struct GraphData{ unsigned long addr; long time;};static int...
View ArticleIs there a way to check whether a given pid match any process in kernel space?
Is there a way to check whether a given pid match any process in kernel space?I am building a system call that changes the weight of custom weighted round robin scheduler.I would like to do a check...
View ArticleDrawing polygon around 1% of data points in R
I have large data frames with spatial points all over the world. Now I would like to find a method to find an area in which 1% of the data points are located. What is the best way to tackle this?...
View ArticleHow do operating systems isolate processes from each other?
Assuming the CPU is in protected mode:When a ring-0 kernel sets up a ring-3 userspace process, which CPU-level datastructure does it have to modify to indicate which virtual address space this specific...
View ArticleTest system is not shown in HLK controller
I have 2 Windows 2016 server VM,I have installed HLK Controller in 1 VM as told in the docs Step...
View Article