General :: Find The Sequence For Signal Handling Mechanism In Kernel?
Apr 28, 2011
I am working on tracing the signal handling mechanism in linux kernel internallly. For that, i build the kernel. Now, i want to trace the signal handling mechanism in the old kernel. I got to about SYSLOG and PRINTK for this. But, how to use these tools exactly in tracing the handling of signals internally ?. Is, there any tool similar to backtrace to do that?. How the call flow is done internally ?
View 1 Replies
ADVERTISEMENT
Sep 7, 2010
I have 4 Linux machines with cluster.My target is to find all kind of IP address (xxx.xxx.xxx.xxx) in every file in the linux system remark: need to scan each file in the linux system and verify if the file include IP address if yes need to print the IP as the following
more /etc/inet/file.example1
182.23.2.4
255.255.0.0
10.10.1.1
View 1 Replies
View Related
Mar 12, 2011
I have created a pthread, and installed a signal handler inside that, same way as we do in main( ) function. The thread's signal handler is a separate function. Surprisingly, it is not working, that is the thread's signal handler is not able to catch signals. Here is the code:
Code: #include <unistd.h>
#include <sys/types.h>
#include <stdio.h>
#include <signal.h>
typedef struct data
[Code]...
View 1 Replies
View Related
Apr 9, 2011
I am currently working on "Creation of Postmortem data logger in Linux on Intel architecture. Its nothing but core utility creation. how the signal handlers for various signals(SIGSEGV,SIGABRT,SIGFPE etc) which produce core dump upon crashing an application internally implemented in Linux kernel. I need to re-write these signal handlers with my own user specific needs and rebuild the kernel. It makes my kernel producing the core file (upon crashing an application) with user specific needs like showing registers,stackdump and backtrace etc.
View 1 Replies
View Related
Jun 14, 2011
In a single main() function,so need signal handling. Use Posix Message Queue IPC mechanism , can ignore the priority and other linked list message,to implement the scenario:
View 1 Replies
View Related
Sep 16, 2010
Is there any Kernel parameter available for interrupts handling, In the case of busy server how we can tune the kernel to handle interrupts effectively.
View 4 Replies
View Related
May 15, 2011
i had a problem with the find command in bash (which i deem is close enough to a promming language, if not please move this thread :P). i tried to reduce the command to the problem. i want the backticks, or $() for that matter; to be evaluated by -exec of find, not by bash. is that a caveat of find?
Code:
$ find testd -exec echo `basename {}` ; #confused me
test
test/a
test/b
[code]...
edit: i found out whats causing this. `basename {}` gets evaluated by bash before find is invoked, returns {} and `find . -exec echo {} ;" is run. now my question is, how to escape this eveluation from happening before.
View 11 Replies
View Related
May 13, 2010
Fedora Core 12 I must be going mad, but I thought I used to use a command such as:
grep -r ^[a-z] *|grep .....
to do a recursive search to find all files that had lines starting with lower case a to z.
If I try that under FC12 (this is a newish install), it also finds uppercase A to Z.
Is there a collating type sequence or locale that I have incorrectly set?
PS just for info, the following shows the problem:
(Linux)retsol610 :stevet : /home/stevet> echo ABC |grep ^[a-z]
ABC
(Linux)retsol610 :stevet : /home/stevet> echo abc |grep ^[A-Z]
[code]....
ie the whole range matching seems a bit 'screwy'. A-z should give x01-x58 so A-z should be be valid and include a couple of spcial chars - but gives a range error. On the other hand, a-Z should pose a problem as that's a backward range - but that seems to search ok.
Does any one else get this in FC12 (I've just tried in RH EL5 and grep ^[a-z] ... works fine)? My locale is:
LANG=en_GB.iso885915
LC_CTYPE="en_GB.iso885915"
LC_NUMERIC="en_GB.iso885915"
LC_TIME="en_GB.iso885915"
[code]....
View 2 Replies
View Related
Mar 15, 2010
I've just seen a strange set of error code during my boot sequence:
WARNING: at mm/page_alloc.c:1813 __alloc_pages_nodemask+0x5ce/0x6c0()
Hardware name: MS-7250
Modules linked in: lp fuse nvidia(P) joydev snd_cmipci gameport rtc_cmos rtc_core thermal processor snd_pcm snd_page_alloc snd_opl3_lib snd_timer snd_hwdep snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore thermal_sys i2c_nforce2 rtc_lib button agpgart k8temp hwmon psmouse sg i2c_core ppdev parport_pc parport forcedeth serio_raw evdev
Pid: 1543, comm: mount Tainted: P 2.6.33 #2
Call Trace: .....
The machine appears to run normally otherwise.
View 4 Replies
View Related
Aug 29, 2015
I am trying to setup a debian sid on my Chromebook (Asus C201 / Rockchip ARM).I've followed the howto here : URL.....Debootstrap ok, config ok, kernel repack ok... everything went fine until the first boot.When i boot from the sd card, nothing seem to happen. The screen stay black, no text appear.Back in chromeos, i check the syslog and the kernel did load successfully.
Code: Select allAug 29 16:10:32 armbox systemd[1]: Startup finished in 2.256s (kernel) + 1.798s (userspace) = 4.054s.
It seems after the kernel loads, nothing happen next.
Kernel is on mmcblk1p1
Rootfs is on mmcblk1p2
My kernel config is :
Code: Select allconsole=tty1 printk.time=1 nosplash rootwait root=/dev/mmcblk1p2 rw rootfstype=ext2 lsm.module_locking=0
View 13 Replies
View Related
Jan 11, 2010
i want to know, what is vpath mechanism in makefile?i did google search this,but i couldn't understand it as i am beginner in linux os. or either give me few simple links related to vpath mechanism.
View 1 Replies
View Related
Jul 27, 2010
I have a general question and decided to post it here. Hopefully, I have picked a correct category. The thing I have been trying to figure out is the syn-cache mechanism. I know that it used to be utilized as a method to mitigate the impact of (D)DoS attacks. I would like to know what happened with it? Is it still added to the Linux systems? Perhaps I am missing something, and cannot find the correct man page about it. Is it the thing, that it is only for NetBSD project?
View 5 Replies
View Related
Feb 23, 2011
When using RPM/YUM or any other package manager, is the old version of that program deleted and then follow by an installation of the latest update? example:
nautilus-2.16.2-7.el5 update to nautilus-2.91.6-3.el5
will nautilus-2.16.2-7.el5 be uninstalled and then follow by an installation of nautilus-2.91.6-3.el5?
View 8 Replies
View Related
Mar 23, 2010
my laptop can't find the wireless signal of my university's wifi. My room is a bit far, so I wonder if there are solutions for this.
View 1 Replies
View Related
Apr 29, 2011
I use the on-board sound chip of a Gigabyte motherboard (Realtek)and I have connected it with optical cable to an amplifier.
Everything worked fine, until February, when an update changed the kernel and the PC stopped giving sound signal! When I returned to the previous kernel (at grub), again everything worked. So,it doesn't seem to be a connection or drivers problem.
I supposed that with 11.04 edition this problem would be solved. But it isn't. In fact I have serious problem now because the old kernel isn't listed in grub anymore.
View 9 Replies
View Related
Mar 28, 2011
I've got this log file and I need to get all sorts of information from it...
24 - [02/Sep/2010:00:01:16 +0200] - 10.1.53.62 - 200
23 - [02/Sep/2010:00:01:26 +0200] - 10.1.53.62 - 200
19 - [02/Sep/2010:00:01:56 +0200] - 10.1.53.62 - 200
[code]....
View 6 Replies
View Related
Aug 3, 2010
What is the maximum amount of ddr that can be installed in a 64 bit ubuntu linux system computer?
View 1 Replies
View Related
Feb 16, 2010
I am writing completion function for one PHP framework called symfony. It has command line interface with syntax:
Code:
symfony [options] [namespace:]action
I want to make action be autocompletable. The function is simplest so far:
Code:
function _symfony_commands()
{
[ -r "cache/completion/.sf" ] && cat cache/completion/.sf
}
[code]....
But, if there is : symbol which separate namespace from action problems coming:
symfony doct[TAB]
will be completed to
symfony doctrine:
But nothing happens if you want complete after : symbol. I've found out that for readline there is three words because it splits line with $COMP_WORDBREAKS
Code:
$ echo $COMP_WORDBREAKS
"'><=;|&(:
I played with $COMP_WORDS array and tried every thought I had to make it work, but failed.
What I should do to escape colon and make readline consider it as one word? Or there is way perhaps to workaround it?
View 2 Replies
View Related
Jan 7, 2011
Code:
How do I know what option means what to compile my own kernel? How to find support for different hardware in this mess (and exclude it)?
View 3 Replies
View Related
Jan 21, 2011
I am developing a device that will run Linux as its operating system.The device is a small form factor X86 device with a flash drive exposed as a SATA-device. So it is not very dissimilar from any other PC running Linux.For several good reasons I am building my own "distribution", instead of using an existing one.What confuses me is how mount/umount of the root file system is handled.I boot my kernel with the commandline "root=/dev/sda1 rw" which works fine. But everytime I do poweroff or reboot Busybox complained about no /etc/fstab, so I decided to build one.Should I have an entry for my root file system? It seems like this is shadowed by the rootfs anyway. I.e. if I have the fstab entry "/dev/sda1 / ext2 1 1" mount still reports rootfs on / type rootfs (rw)/dev/root on / type ext2 (rw,relatime,errors=continue)My questions are:Do I need to worry? Will the drive be correctly unmounted by the kernel on poweroff/reboot?If I want to perform file system checking on boot, can I do that without resorting to an initrd?
View 1 Replies
View Related
Jun 15, 2011
I want to run a script when the switch goes down and an other when it goes up. Is there an easy way to pull this off in Debian (preferably with no other than system tools)? I suppose there is no difference (in the OS point of view) between unplugging ethernet cable and the switch losing power.
On an event I get lines like these in the syslog:
Jun 15 17:49:41 debian kernel: [ 5506.956130] igb: eth1 NIC Link is Down
...
Jun 15 17:49:45 debian kernel: [ 5511.168788] igb: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
In FreeBSD you can pipe log messages (pre-filtered by regex patterns) to a program. What is the easiest way to replicate this on Debian (with as little additional software as possible)?
View 1 Replies
View Related
Jul 21, 2011
after installing Debian 6 on a server. When I try to install a software called ActiveCampaign, I get the following error ... "Your server does not appear to be handling sessions properly."I have install Apache, PHP, MySql and Perl already. Also, after the server restarts, I Webmin will not automatically start, even thou it is setup in the Webmin configuration to start with the server. I have to use /etc/init.d/webmin start from a command line after I su.
My last question is about ftp permissions. I have install proftpd and it seems to be working fine, but when I try to edit any file or upload, I can not. In order to upload and manipulate files, I am using WinSCP under root, wich is a big NO NO.Sorry for the three questions, but I figured I would ask all in one post, instead of creating multiple, since I already have your attention.
View 1 Replies
View Related
Jul 6, 2010
Where can I find the documentation for RHEL 5.4 kernel 2.6.18?
View 1 Replies
View Related
Feb 24, 2010
Is there a command or any steps to follow?
View 3 Replies
View Related
Feb 25, 2010
Pretty soon, I hope, I'll get my brand new PC and wish to install a Linux disto. on it. openSuse may be it But I read recently that people prefer to do a fresh install of a newer version of openSuse, instead of upgrading it, apparently because of problems that may occur by the upgrade. As I understand, this preference apply to all Linux distributions and not only openSuse. Thus I wonder if there's a Linux distro. that's best in handling upgrades?I don't want to make a fresh new install each and every time that my disro. has a new version. I'm afraid to lose the data in that installation, and backing-up the data would be a headache. Also I plan to install a Windows OS alongside the Linux one via the Dual Boot configuration.
View 14 Replies
View Related
Jun 9, 2010
where can I find all Debian release iso images with Linux kernel 2.4.x?
View 3 Replies
View Related
Jan 20, 2011
I compiled my own kernel with tun/tap and bridge support. Both modules load fine at boot time (I could read that in the dmesg output). Now I want to use it, and the /dev/net/tun node is not there, so my application gives that error. I'm trying to bridge openvpn connections. Is it possible that udevd is not doing his work?
PS: I'm on a WD MyBook World Ed NAS device. It's ARM, so I cross compiled the kernel from my debian linux machine. I also installed debian on the NAS.)
View 1 Replies
View Related
Dec 21, 2010
I'm currently trying to get my wireless card to work with ndiswrapper after installing backtrack4 today, BUT.When I try and use the make command it tells me that some or another file is missing. I've checked and the output is right, There is no file of that name but there is neither a folder of that name.
Code:
root@bt:/usr/src/ndiswrapper-1.56/ndiswrapper-1.56# make
make -C driver
make[1]: Entering directory `/usr/src/ndiswrapper-1.56/ndiswrapper-1.56/driver'
[code]....
View 5 Replies
View Related
Jan 15, 2011
I just downloaded the newest version of Ubuntu onto a USB drive. I put it into my computer and when it was loading Ubuntu, it said "Could not find kernal image: vesamenu.c32".
View 8 Replies
View Related
Mar 17, 2010
im trying to install ndiswrapper to get my belkin wireless g pci network card working, but have an error
makefile:34 Cannot find kernel version in /lib/modules/2.6.28-18-generic/build, is it configured?
i have apt-get installed build-essential linux-headers-server
this is on ubuntu server 9.04 32bit version.
View 4 Replies
View Related