Linux kernel has a very powerful function is to dynamically load the module, the module in this case is actually a kernel-supported applet. Before we actually get into the Linux kernel world, we can go through an addiction and load a kernel module on our own.
Since the module is the program, we first write a small prog
SystemTap kernel debugging and systemtap kernel debugging
I. Introduction
Systemtap is a brand new debugging, diagnosis, and performance measurement tool in Linux. It is the most powerful kernel debugging tool I know at present.
Refer:
Http://m.blog.csdn.net/blog/hnllei/7521010
Ii. Installation
Refer:
Http://www.cnblogs.com/wangkangluo1/archive/2012/06/2
The Linux kernel of Android is stored in the kernel subdirectory. By comparing it with the standard Linux 2.6.25 kernel, we can find that it mainly adds the following content:
1. Add the gold-fish platform based on the ARM architecture. The directories added are as follows:
Kernel/ARCH/ARM/Mach-goldfish
In factCodeI have been analyzing it for a long time. I have long wanted to write something for myself. From today on, I will continue my blog!
I have been dealing with Linux over the past few years, and I think I really fall in love with Linux. So write something about Linux!
Linux has many things. As far as the kernel is concerned, it is impossible for a single person to understand all the mechanisms and details. But fortunately, the source code
Binary Search and its implementation in the database kernel | go deep into the MySQL Kernel
Binary Search and its implementation in the database Kernel
Posted on
April 1, 2013
By
Hedengcheng
Problem background
During this year's intern recruitment examination, I got a binary search question. The question is as follows:
Give
: Wait (Wait) and Release (Release ). When a thread calls the Wait (Wait) operation, it either reduces the semaphore by one or waits until the semaphore is greater than one or times out. Release (Release) is actually an addition operation on the semaphore, corresponding to the vehicle leaving the parking lot. This operation is called "Release" because the addition operation actually releases the resources protected by the semaphore.
Before installing Oracle, you usually need to set the
(1) Configuring the kernelHow to configure the kernel1. Make config text-based interactive configuration2. Make Menuconfig menu-based configuration in text modeConfiguring the kernel with make MenuconfigIn the configuration Blank is not selected, * means select and compile into kernel image file, M will compile into kernel module.Configuration results are saved i
First, the cutting kernel 1.1 changesNow the kernel size is about 2.8M, to crop to below 2.0M, after all, to the kernel partition is only 2.0M. We don't have these two devices, cut them off.Go to make menuconfig and search for Mousedev: Go inside and crop as needed. Search LP: Hostname modification: The file system is modified again: Remove the following
, the locking mechanism is introduced.2. Method of synchronization-lockingIn order to lock the critical section and ensure the synchronization of the critical section data, first understand which cases in the kernel will generate concurrency.Reasons why the kernel is causing the race condition:
Competitive reasons
Description
Interrupt
Interrupts can occur at any tim
Label:This paper mainly analyzes several kernel functions related to debugging in the kernel. The first is the Ntcreatedebugobject function, which is used to create a kernel debug object, and the parser shows that it is just a layer of obcreateobject encapsulation and initializes some struct members. I'll write some notes about the management of the Window object
Tags: support port net art init hot ade dep alsMakefile not make LoveOnce in school, mixed for four years, did not learn anything, every day is skipping classes, surfing the internet, playing games, sleeping. When I graduated, I was told that I had no idea of makefile, but I felt a sense of embarrassment when I said make love.It's no exaggeration to say that kconfig and makefile are the two files we rely on when we browse the kernel code. Basically, t
When CentOS updates the kernel, many startup items will be added during startup. we can delete the old kernel and keep the latest kernel so that some disk space (/boot) can be released ). (1) view the installed kernel command: rpm-qkernel display result: kernel-2.6.32-279.14
Article Title: Use kgdb to debug Linux kernel and kernel modules. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. Comparison of several kernel debugging tools
Kdb: Debugging ca
0.12 kernel memory management is relatively simple rough, the kernel only uses a page directory, can only map 4G of linear space, so each process of virtual space (logical space) can only give 64M, up to 64 processes; Each process has a corresponding task number NR, when a process needs to allocate process space, The linear start address of the process space can be obtained only by multiplying nr by 64M. Th
Article Title: How is the Linux kernel module transferred to the kernel ?. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Lsmod reads the/proc/modules file to check which kernel m
Read the platinum file written by the sibling in the 2.4 kernel.
IptablesAdd a module and try it in the 2.6 kernel. After one and a half days of hard work, refer to the platinum article,
Finally succeeded, write it down and share it with the Cu guys, my system is fedora2 + linux-2.6.5-1.358
1. Install the kernel source code.[Root @ jiecho] # Yum install
This series of articles prepared by Zhang tonghao, reproduced please note the Source: http://blog.csdn.net/muge0913/article/details/7480929
Email: muge0913@sina.com
Because the kernel does not distinguish between processes and threads, kernel threads are also called Kernel processes ). Note that threads in common processes cannot be considered as processes.
Dif
Kernel synchronizationSynchronous introductionThe concept of synchronizationCritical section: Also known as the critical segment, is the code snippet that visits and operates shared data.Competition conditions: 2 or more than 2 threads are running at the same time in a critical section, which constitutes a competitive condition.So-called synchronization. In fact, to prevent the formation of competitive conditions in the critical area.Assuming that the
First, How does the Linux kernel organize the files in each directory tree and compile them? and build a kernel with specific features as needed? in theLinuxin the kernel, there are two types of files:Makefile,Kconfig. The two files are distributed in the various levels of the kernel directory (each level corresp
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.