spyder-kernel module missing after switching from Python 3.9 to 3.8 in Spyder5
I installed Anaconda and Spyder to run a python code with Python 3.9. Then I download Python 3.8 to try this code. However, after switching from 3.9 to 3.8, spyder-kernel module cannot be found.I feel...
View ArticleWhat's the cost (in cycles) to switch between Windows Kernel and User mode?
I'm curious what the cost is on modern CPUs in terms of cycles to perform a switch from Kernel and User mode?
View ArticleHow to use my Object in a CUDA global function
I have an object with functions that I wrote in C++:MyObj::MyObj(int I, int J) {// Ctor code goes here}int MyOjb:func1() {// simple function that returns an int}__global__ void KernelWork(int i, int j)...
View ArticleAn error ocurred while starting the kernel in python spyder
I have a long-lived WebSocket connection for a live trading application with python. I got the following error in spyder after 4 days of working.An error ocurred while starting the kernelNo error...
View ArticleWhat are the conditions for COW (copy-on-write optimization)?
My theacher said that the conditions for COW is that the command that caused the page fault was a write command in user mode and also that the translation exists in the page table (present = 0).But I...
View ArticleHow to trigger fops poll function from the kernel driver
I am working on a kernel driver which logs some spi data in a virtual file using debugfs.My main goal is to be able to "listen" for incomming data from userspace using for example $ tail -f...
View ArticleKernel Restarting The kernel appears to have died. It will restart automatically
pip install mahotasRequirement already satisfied: mahotas in c:\users\rozario\anaconda3\lib\site-packages (1.4.12)Note: you may need to restart the kernel to use updated packages.Requirement already...
View ArticleTrouble enabling paging in simple kernel written in NASM
I am writing a basic kernel to learn and am having difficulty enabling paging, so that I can work in long mode.I slimmed down my code for...
View ArticleCan't connect Python kernel jupyter
I can't connect my Python kernel to Jupyter. This is weird cause I can run R kernel which is in the same path.jupyter kernelspec listAvailable kernels: ir /X/anaconda3/share/jupyter/kernels/ir matlab...
View ArticlePage table mapping
//======= init page.align 8.org 0x1000__PML4E: .quad 0x102007 .fill 255,8,0 .quad 0x102007 .fill 255,8,0.org 0x2000__PDPTE: .quad 0x103003 .fill 511,8,0.org 0x3000__PDE: .quad 0x000083 .quad 0x200083...
View ArticleWhy bash echo string length is 28
I am writing my own procfs read write handler.static ssize_t mywrite(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos) { printk(KERN_ALERT "write handler\n"); int num,c,i,m; char...
View ArticleAny reason on "transmit queue 0 timed out" message on dmesg? [closed]
I have setup a k8s cluster on Ubuntu 18.04/20.04 boxes.Then, I deployed some applications on them, which is called OpenPai.On one particular node, I made it as a pai-master node, and deployed several...
View ArticleOpencl, Will using global pointer to different local memory create branching?
I have a kernel like thiskernel void k1(global int * a, global int * b, global int * c){ int i = get_local_id(0); global int* ptr; if (i==0) ptr = &a[0]; if (i==1) ptr = &b[0]; if (i==2) ptr =...
View ArticleWhy are you not able to modify the OS kernel code while its running? [closed]
I know you can download the Kernel code and modify from there but why is it that we can't edit the Kernel while its running on a system?
View ArticleBuilding ZFS into Linux-5.15 kernel in WSL2 using wsl-config results in...
I'm fairly new to WSL2 and building stuff from git clone or other sources; although I have been using ZFS for many years.Following the instructions from https://wsl.dev/wsl2-kernel-zfs/ I attempted to...
View ArticleIt seems scheduling not happen?
I may misunderstand but it looks scheduling is not happening.I created a Kernel module and created a Kernel thread in the module.I expect "point-A" will be printed after scheduling since the...
View ArticleHow to locate address of a function using base address of the executable?
OK so I have the base address of ntoskrnl.exe and want to locate the address of an internal function that is neither exported or imported. How can this be done in kernel mode ?
View ArticleMeasure Java execution time (Real, User, System) like linux command
I have a massive parallel Java-Application and want to measure its execution time the very same way that linux'time command does it (Real, User, System).I'm especially interested in the time the...
View ArticleHow can I dump a specific section of memory with Windbg?
I am debugging a kernel application and want to dump a specific part of memory. I want to copy a driver (meaning its PE header and all of its sections) after breaking at a specific point, into a dump...
View ArticleeMMC Write / Read data
I don't want to run U-boot and kernel from eMMC. Just want to access raw eMMC and perform some read/write cycle tests.Can we access the eMMC by writing the application layer?Thanks,
View Article