I have the linux utils code (can be found here: https://www.kernel.org/pub/linux/utils/util-linux/) and I only need libuuid, nothing else. I’ve tried setting many ‘–disable-‘ flags but it still seems to be compiling things I don’t need. Here’s my actual configure command: a…
Tag: linux-kernel
LINUX LISH.H list_for_each infinite loop
I’m trying to implement a list of task_struct and use it as a FIFO. In addition I need a function to go through the list and search for a particular task. My problem is that the list_for_each macro gets stuck in an infinite loop. Here below there is a snippet from my code: Thanks in advance for any tips…
How to undo rm -rf? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Debian test if load average shows real value
How can I test that my kernel is showing the correct load average ? The load is always high on this server, and I doubt it’s the real one. I use kernel 3.2.0 and Debian version 7.3 Answer If you are planning get more info directly from kernel, then it’s better to look at /proc/sched_debug (this re…
the physical address of global descriptor table?
I’m reading the disassemble code of mit os’s kernel code. I think the kernel code should follow the same rule. I saw the instruction in the kernel that load the Global Descriptor Table is as follows: lgdtl 0x10f018 I know the lgdt takes the length of the GDT (16bit) and the address of the GDT (32b…
Capturing user-space variables at “perf” events
I’ve now been able to get perf to capture a user-space stack`, but I’m not sure how to convince it to capture values passed by reference as pointers, or to snapshot globals of interest. Specifically, I’m trying to analyse the system-wide performance of PostgreSQL under various loads with and…
undefined reference to system call added to kernel
After adding the system call to kernel I tried to compile the kernel. It ran for 2 hours and at the end threw undefined reference to <system call added by me> Any idea what had happened. Kernel 3.9.3 Steps followed are – Get kernel codes from www.kernel.org. wget http://www.kernel.org/pub/linux/ke…
Kernel Modul and SSL
at the moment I am working on the kernel module of ccn-lite (http://www.ccn-lite.net/). For that I need some security functionality (sha1 and public/private key authentificaton). For the user-space I use the openssl library, but I cannot use a library in the kernel module. It is also hard to pick the function…
Does using linux capabilities disable LD_PRELOAD
In my custom environment an interceptor library is preloaded which runs a special implementation of bind(), connect(), etc. calls. The problem I see is whenever an application is explicitly enabled capabilities using command setcap, executing the application fails to preload interceptor library and calls defa…
How to pass a value to a builtin Linux kernel module at boot time?
I want to pass a custom parameter to the kernel at boot time, which my new code will use. This parameter is a number. I know how to pass value to kernel module using kernel command line i.e module_param(). Now i want to pass value from u-boot. Is there a way to do this, either during or after boot? Answer