0, please use the physical machine installation, the virtual machine did not compile successfully 1, first check the system version, need to be CENTOS6, kernel 2.6cat /etc/*releaseuname -r2. Download kernel rpm from Redhat websitewget ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6Server/en/os/SRPMS/kernel-2.6.32-220.23.1.el6.src.rpmIf this is not possible, pl
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
First, let's talk about how this problem came about. (When analyzing a technology, we should first consider what problems it wants to solve, or when learning new knowledge, what is the purpose of this knowledge ).
When compiling the kernel, I found a file named vmlinux. LDS. s under the arch/ARM/kernel directory. At first glance, do you want to compile a file? It seems that it is not. So what does it do?
instructions in the critical section are executed continuously, and may be executed in the critical section half way, Because the scheduler is preempted or interrupted, the CPU does not continue to execute within the critical zone, which means the execution is interrupted.But that still guarantees the avoidance of competitive conditions, the reason is that if a process outside of the interrupted process is scheduled, the process will have to access the critical section, the lock or semaphore, a
Windows downloaded the linux-2.6.37 kernel source code, copy to the U disk, mounted to the centos 5.5 System in the virtual machine through Mount. You can use Putty to connect to the VM using host-only.
Mount the U disk in the/mnt/directory, copy the kernel compressed package to/mnt/kernel, tar decompress, enter the linux-2.6.37 directory. Run make menconfig. The
Recommended blog posts:Linux Kernel "problem Gate"-learning issues and experience highlights
Recommended download:Methodology of essence edition of "Cultivation of Linux kernel"
Makefile is not make love
I used to spend four years in school and didn't learn anything. Every day, I skip classes, surf the Internet, play games, and go to bed. When I graduated from college, I was told that makefile was comp
Determine the browser version and the browser kernel, and determine the browser kernel
If (! Browser. ie ! Browser. mac) {var UA = navigator. userAgent. toLowerCase (). toString (); // determines whether it is a non-IE version in the IE kernel if (UA. indexOf ('360ee')>-1) | (UA. indexOf ('360se')>-1) | (UA. indexOf ('se')>-1) | (UA. indexOf ('aoyou')>-1) | (UA.
Solution to failure to boot after Ubuntu kernel upgrade: ubuntu Kernel
Ubuntu has always reminded me to upgrade the kernel. I can't help it today. Then GG goes, and an error is reported directly at startup.
[Firmware Bug] TSC_DEADLINE disabled due to Errata; please update microcode to version: 0xb2 (or later) ...... a lot
It seems that the CPU microcode is not
PHP kernel learning-create PHP extension, php kernel-extension. Learning the PHP kernel-creating PHP extensions, and the php kernel-the extension has started to look at the PHP kernel for some time. now I want to learn and summarize it, today we will summarize how to create
There was a lot of content during the startup process, so I had to analyze it slowly. Before that, I also collected a lot of information and added some understanding here. It's hard to get started with the kernel.Source codeWe will cherish this hard-won moment.
To get the kernel structure, we have many methods, such as viewing kbuild makefile and documentation, but I chose to find it on the network, because we focus on how to analyze the source.Code
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.