Re: Developing environments used for kernel development

2015-12-23 Thread amit mehta
On Wed, Dec 23, 2015 at 3:30 PM, Daniel. wrote: > Well, no body except Lucas, but I also had never researched for this > like I'm doing right now. I think that the vim is still the more used > editor for C programming on Linux. Emacs has really awkward key stroke

Re: [Off-topic] SCM using git

2015-08-19 Thread amit mehta
On Wed, Aug 19, 2015 at 6:57 AM, Chetan Nanda chetanna...@gmail.com wrote: 1. Better to have a proper review process in place, gerrit is one of the best tools I have used so far for reviewing, 2. Keep a master branch always compilable (run able) and merge rights should be only to integrator.

[Off-topic] SCM using git

2015-08-18 Thread amit mehta
Hello All, This query is not about Linux kernel, but is rather generic query on development framework with git. Since, Linux Kernel project is significantly large, with astonishing number of people involved and large number of branches, I'm assuming that people have faced similar situation and

Query on git usage for creating patch with incremental commits

2014-12-12 Thread Kumar Amit Mehta
Hi, I know that it's not a typical Linux kernel related query but I reckon that people involved in Linux kernel testing/development might have gotten into similar situation. So, please bear with me for this rather generic framework related query. The scenario: 1: Cloned linux-next at time T1 $

Re: Query on git usage for creating patch with incremental commits

2014-12-12 Thread Kumar Amit Mehta
(using the '-- onto' option). HTH, -mandeep On Fri, Dec 12, 2014 at 6:58 AM, Kumar Amit Mehta gmate.a...@gmail.com wrote: Hi, I know that it's not a typical Linux kernel related query but I reckon that people involved in Linux kernel testing/development might have gotten

SOC: Zedboard: Driver question

2014-06-12 Thread amit mehta
We are working on a school project in which we are trying to develop a audio mixer on Zedboard (Development board from Digilent). We have developed the IP and have integrated it with the overall hardware using Programmable logic. This board has ARM core. We have a Digilent pre-configured Linux

Re: Memory profiling tools for Linux Kernel

2014-04-04 Thread Kumar Amit Mehta
On Fri, Apr 04, 2014 at 10:34:54AM +0200, Vegard Nossum wrote: On 4 April 2014 02:45, Kumar Amit Mehta gmate.a...@gmail.com wrote: I was looking for some tools for memory profiling for Linux Kernel. I I wish to analyze the memory usage statistics by comparing the results (with and without

Re: Memory profiling tools for Linux Kernel

2014-04-04 Thread Kumar Amit Mehta
On Fri, Apr 04, 2014 at 01:49:05AM -0700, aaditya.gavandal...@yahoo.com wrote: Hi, You can you a heap profiler to check heap usage for example massif. Massif is a tool under valgrind package. You can research on valgrind more for other helpful tools as well. Memcheck is bydefault in usage

Memory profiling tools for Linux Kernel

2014-04-03 Thread Kumar Amit Mehta
I was looking for some tools for memory profiling for Linux Kernel. I I wish to analyze the memory usage statistics by comparing the results (with and without the usage of Lookaside caches) by the consumer (Say a certain driver).I found some tools such as kmemcheck[1] and KEDR [2] but before I go

Re: Line rate

2013-10-31 Thread Kumar Amit Mehta
On Thu, Oct 31, 2013 at 11:59:23AM -0700, Robert Clove wrote: I have an 10Gbps link between my servers. I want to achieve the line by 1200 -1500 packet size how can i do that i only able to achieve the 4Gbps rate. I remember, referring this nice presentation[1] by Mark Wagner, while I was

Re: Dinning-philosphers problem, solution using counting semaphore and fair scheduling

2013-10-22 Thread Kumar Amit Mehta
On Mon, Oct 21, 2013 at 05:43:50AM -0700, Robert P. J. Day wrote: the standard solution is to simply order the resources and require everyone to request resources in that order. problem solved. don't make this into a bigger issue than it really is. Thank you for giving me some directions.

Dinning-philosphers problem, solution using counting semaphore and fair scheduling

2013-10-21 Thread Kumar Amit Mehta
Hi All, This query is not about linux kernel in any way, but rather is a very primitive question on scheduling and resource management principles, using the dinning-philosphers analogy. I assume, most of the people here would have faced such situation and hence thought of discussing this in this

Re: Kernel 64bit

2013-05-23 Thread amit mehta
On Thu, May 23, 2013 at 10:16 AM, Giridhara RP (grp) g...@cisco.com wrote: Hi, I am trying to build 64bit kernel (linux kernel 2.6.32-60). But, once I boot the image (ISO), uname -a still shows as i686. It does not show as 'X86_64'. My vmlinuz and vmlinuz.o shows 64bit. Any pointers much

Re: Kernel 64bit

2013-05-23 Thread amit mehta
On Thu, May 23, 2013 at 2:45 PM, Giridhara RP (grp) g...@cisco.com wrote: Looks like I copied wrong output in my previous email. Here is the output. Also, what should I do with 'grub'? 5. After boot 'uname -a' , shows this. Linux 2.6.32-60 #1 SMP Mon Mar 25 16:20:30 IST 2013 i686

Reference material for x86-64 assembly on Linux

2013-05-20 Thread amit mehta
Folks, Can you please suggest me some nice books or tutorials that concentrates more on the x86_64 assembly programming using GNU assembler. Unfortunately, I haven't done any assembly programming for the last seven years, but my current job requires me to analyse kernel crashes and a lot of them

Major number for multipath block devices

2013-05-06 Thread Kumar amit mehta
Hi, I've a query regarding the major numbers for block devices that the block layer would provide (upon invocation of register_blkdev() with '0' as the major number) for the multipath devices, i.e. If I have one logical volume(Talking in LVM terms)and have two paths to the same logical volume,

Re: Major number for multipath block devices

2013-05-06 Thread Kumar amit mehta
On Mon, May 06, 2013 at 08:09:03PM -0400, Kumar amit mehta wrote: If I have one logical volume(Talking in LVM terms)and have two paths to the same logical volume, then it seems that the two logical volumes will have the same major number(refer [1]). My apologies for typo mistake above. I

Re: kernel panic in sample block device driver

2013-05-02 Thread Kumar amit mehta
On Wed, May 01, 2013 at 10:24:40PM +0530, Pranay Srivastava wrote: https://github.com/pranjas/block_driver Thank you so much, looks pretty heavy-duty right now though!!! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Need a good document that explains how to analyze kernel crash dump.

2013-05-01 Thread amit mehta
On Wed, May 1, 2013 at 5:09 PM, Prasad Lakshman prasad.bl@gmail.com wrote: Hi all, Is there any document that explains how to analyze the Linux kernel crash dump. What are the sections of crash dump what are these sections signify and explain about the crash ,.etc please someone help me

Fwd: Need a good document that explains how to analyze kernel crash dump.

2013-05-01 Thread amit mehta
Forgot to reply-all On Wed, May 1, 2013 at 5:40 PM, Prasad Lakshman prasad.bl@gmail.com wrote: Thanks for your reply ,but the link you provided is explaining how to use crash utility .I think it's tool by Redhat. But what I am looking for is different. crash is an open source tool, you

Re: Need a good document that explains how to analyze kernel crash dump.

2013-05-01 Thread amit mehta
On Wed, May 1, 2013 at 6:03 PM, Prasad Lakshman prasad.bl@gmail.com wrote: Hi amit, What you mentioned is correct , dmesg or /var/log/messages display the crash log ,somehow I got this log even after the system crash. After obtaining the crash log we need to know the reason of crash. I

Documentation on device-mapper and friends

2013-04-28 Thread Kumar Amit Mehta
I'm looking for information on device-mapper, the kernel space utility for Logical Volume Management (LVM2). It seems that the relevant code resides under drivers/md and a lot of other information is under Documentation/device-mapper/ That's fine, but is there any other document that gives more

Re: kernel build error

2013-04-02 Thread Kumar amit mehta
On Tue, Apr 02, 2013 at 10:04:31AM +0700, Mulyadi Santosa wrote: Could you paste roughly 20-30 lines of boot messages when you hit the hung point? Kernel config alone usually can't help much I'm trying this on a Virtual Machine using VMware Player. When the VM boots up, it throws lots of

Re: relationship between cpu_affinity and Packet RX Processing

2013-03-29 Thread Kumar amit mehta
On Tue, Mar 26, 2013 at 09:31:01PM +0200, Rami Rosen wrote: Hi, 1) You can be sure that it does not use more than one rx queue. You can find more info about RX queues in http://media.wix.com/ugd//295986_4ef6dbdf11fd0a7f74f09741b4b5b2ee.pdf (I wrote it, a shameless plug...) 2) Does

Re: relationship between cpu_affinity and Packet RX Processing

2013-03-29 Thread Kumar amit mehta
On Tue, Mar 26, 2013 at 09:31:01PM +0200, Rami Rosen wrote: Hi, 1) You can be sure that it does not use more than one rx queue. You can find more info about RX queues in http://media.wix.com/ugd//295986_4ef6dbdf11fd0a7f74f09741b4b5b2ee.pdf Thank you so much for sharing this.

relationship between cpu_affinity and Packet RX Processing

2013-03-26 Thread Kumar amit mehta
Hi All, I was reading some stuff on interrupts and irq lines today and I thought I'll expermient with the network rx path. To start with, I've a Virtual Machine running 3.8 linux kernel. My machine has 4 CPU cores, network (eth) interface is driven by pcnet_32 AMD driver and is tied to IRQ line

Re: relationship between cpu_affinity and Packet RX Processing

2013-03-26 Thread Kumar amit mehta
On Tue, Mar 26, 2013 at 11:45:55AM -0700, Arlie Stephens wrote: I don't know for sure what linux does, but the NICs I've seen with multiple queues tend to select queues by hashing incoming packets based on source IP, sourse port, destination IP, destination port and (if TCP) protocol.

Re: relationship between cpu_affinity and Packet RX Processing

2013-03-26 Thread Kumar amit mehta
On Tue, Mar 26, 2013 at 08:35:56PM +0200, Rami Rosen wrote: 1) Regarding rx queues: what does ls /sys/class/net/eth0/queues show ? $ ls /sys/class/net/eth0/queues rx-0 tx-0 2) can you try setting affinity for working only with CPU3 and see what happens after some traffic is sent by cat

Re: kernel build error

2013-03-24 Thread Kumar amit mehta
On Sun, Mar 24, 2013 at 12:49:55PM +0700, Mulyadi Santosa wrote: On 3/22/13, Kumar amit mehta gmate.a...@gmail.com wrote: I've uploaded the kernel configuration and the screenshot in google drive [1]. ok let's see... hmmm, stuck during I/O memory mapping?. sadly, no further

Re: kernel build error

2013-03-22 Thread Kumar amit mehta
On Fri, Mar 22, 2013 at 10:41:56AM +0700, Mulyadi Santosa wrote: On Thu, Mar 21, 2013 at 1:16 PM, Kumar amit mehta gmate.a...@gmail.com wrote: boot issue. But before attaching these small files(136K and 32K respectively) and send it to the mailing list, I'd like to ask, if that's fine

Re: kernel build error

2013-03-21 Thread Kumar amit mehta
Inline On Wed, Mar 20, 2013 at 12:07:57AM -0700, Kumar amit mehta wrote: On Tue, Mar 19, 2013 at 11:56:44PM -0700, Kumar amit mehta wrote: On Tue, Mar 19, 2013 at 09:43:11PM +0700, Mulyadi Santosa wrote: Hi ... On Tue, Mar 19, 2013 at 12:28 PM, Kumar amit mehta gmate.a...@gmail.com

Re: kernel build error

2013-03-20 Thread Kumar amit mehta
On Tue, Mar 19, 2013 at 09:43:11PM +0700, Mulyadi Santosa wrote: Hi ... On Tue, Mar 19, 2013 at 12:28 PM, Kumar amit mehta gmate.a...@gmail.com wrote: grep for copy_from_user_overflow gives me this: amit@ubuntu:~/linux-next/linux-next$ grep -ri copy_from_user_overflow * arch/s390

Re: kernel build error

2013-03-20 Thread Kumar amit mehta
On Tue, Mar 19, 2013 at 11:56:44PM -0700, Kumar amit mehta wrote: On Tue, Mar 19, 2013 at 09:43:11PM +0700, Mulyadi Santosa wrote: Hi ... On Tue, Mar 19, 2013 at 12:28 PM, Kumar amit mehta gmate.a...@gmail.com wrote: grep for copy_from_user_overflow gives me this: amit@ubuntu

Re: kernel build error

2013-03-18 Thread Kumar amit mehta
On Mon, Mar 18, 2013 at 11:21:52AM +0700, Mulyadi Santosa wrote: On 3/17/13, Kumar amit mehta gmate.a...@gmail.com wrote: I'm facing a kernel build issue with the latest kernel on my machine. It seem like a configuration issue, and I haven't been able to resolve it for sometime, hence

kernel build error

2013-03-17 Thread Kumar amit mehta
I'm facing a kernel build issue with the latest kernel on my machine. It seem like a configuration issue, and I haven't been able to resolve it for sometime, hence need your help. The error message is as below: error snip ERROR: copy_from_user_overflow [net/core/pktgen.ko] undefined! ERROR:

Query on skb buffer

2013-03-06 Thread Kumar amit mehta
My current understanding is that the skb, while being passed along various layers in linux network stack, will be manipulated majorly, using the skb-{head|data|tail|end|len} fields. Suppose that my application (say 'ping') sends a ICMP echo request with a large packet size of 4k, i.e. $ ping -s

Re: atomic operations

2013-02-24 Thread Kumar amit mehta
On Sun, Feb 24, 2013 at 08:53:20PM +0800, Peter Teoh wrote: Another good article on atomicty and data sizes: http://www.ibm.com/developerworks/library/pa-atom/ On Sun, Feb 24, 2013 at 8:50 PM, Peter Teoh htmldevelo...@gmail.com wrote: in simple terms, any operation, in terms assembly

Re: how to look for source code in kernel

2012-12-27 Thread amit mehta
On Thu, Dec 27, 2012 at 11:01:52PM +0530, kishore kumar wrote: can anybody tell me how to look into source code, as most are hidden in kernel. You can find the Linux source code at http://kernel.org/ . for browsing the code unfortunately there is no good tool as in windows we have source

Re: Need to Add Documents in Linux kernel

2012-12-26 Thread amit mehta
On Wed, Dec 26, 2012 at 8:57 PM, Javed Iqbal javedd.iq...@gmail.com wrote: Hi, I just want to know that can I add documents in linux kernel version 3.x.x.?? If yes then please tell me the procedure to add the documents? I guess it won't be any different than sending those as patches. -Amit

Re: Does kernel Image file contains the elf format information ?

2012-11-26 Thread Kumar amit mehta
On Tue, Nov 27, 2012 at 12:44:45PM +0800, horse_rivers wrote: hi,    when we compile kernel,gcc will put elf format information into the target file ,then we use build-tools construct the kernel Image,   during this procedure,will elf information be copyed into Image file ? Yes, it does

Re: Managing linux-next tree for submitting patches

2012-11-21 Thread Kumar amit mehta
On Wed, Nov 21, 2012 at 02:47:15AM -0500, devendra.aaru wrote: that maintainer's tree is next tree so that next can pickup. once the next pics up your changes gets merged there in next. always its good to work against' maintainers trees, if its a fix then its better work on the maintainer's

Managing linux-next tree for submitting patches

2012-11-20 Thread Kumar amit mehta
Hi, After some discussions that happened over kernel newbie mailing list in past, I've managed to send some trivial patches to linux janitors and to relevant maintainers. My patch base has been linux-next tree and I'm glad that some of them got merged. Recently, for one of my patch, I got a reply

Re: Managing linux-next tree for submitting patches

2012-11-20 Thread Kumar amit mehta
On Wed, Nov 21, 2012 at 12:52:58AM -0500, devendra.aaru wrote: On Wed, Nov 21, 2012 at 12:36 AM, Kumar amit mehta gmate.a...@gmail.com wrote: Hi, After some discussions that happened over kernel newbie mailing list in past, I've managed to send some trivial patches to linux janitors

Re: Fwd: ifconfig / alloc_netdev

2012-11-07 Thread Kumar amit mehta
, 2012 at 11:36 PM, Kumar amit mehta gmate.a...@gmail.com wrote: On Mon, Nov 05, 2012 at 09:34:55PM -0500, A B wrote: I'm facing an issue where ifconfig command output doesn't display the interface that is created using alloc_netdev and registered using register_netdev. If i do 'ifconfig

Re: Tools for checking incorrect usage of locking techniques in k-space

2012-11-06 Thread Kumar amit mehta
On Mon, Nov 05, 2012 at 09:51:19AM +0400, Vladimir Murzin wrote: I've not tried your module, but I suppose that you should get warning as soon as you try to take write semaphore once again. Thank you for your mail. I wanted to try what you've suggested, but now I'm facing a different problem.

Re: Fwd: ifconfig / alloc_netdev

2012-11-05 Thread Kumar amit mehta
On Mon, Nov 05, 2012 at 09:34:55PM -0500, A B wrote: I'm facing an issue where ifconfig command output doesn't display the interface that is created using alloc_netdev and registered using register_netdev. If i do 'ifconfig -a', i'm seeing the interface which i created. Under what

Re: make error

2012-11-01 Thread Kumar amit mehta
On Thu, Nov 01, 2012 at 03:13:04PM +0200, Gregg Douglas wrote: Thanks Anmol, first installed the following extra packages linux-kernel-headers kernel-syms module-init-tools then ran make oldconfig make prepare, I get further: make M=drivers/staging/bcm/ WARNING: Symbol version dump

Re: Tools for checking incorrect usage of locking techniques in k-space

2012-10-31 Thread Kumar amit mehta
On Mon, Oct 29, 2012 at 12:03:08AM +0530, Srivatsa Bhat wrote: You'll need CONFIG_LOCKDEP=y as well. An easy way to configure lock debugging checks is to run 'make menuconfig' and enable the required options under the Kernel hacking section. If above configuration is all that I need, then

Re: Query on CodingStyle: indentation

2012-10-21 Thread Kumar amit mehta
On Fri, Oct 19, 2012 at 11:40:35AM -0400, Greg Freemyer wrote: On Fri, Oct 19, 2012 at 5:00 AM, Kumar amit mehta gmate.a...@gmail.com wrote: On Fri, Oct 19, 2012 at 03:03:28PM +0800, Adam Lee wrote: On Thu, Oct 18, 2012 at 10:31:29PM -0700, Kumar amit mehta wrote: Hi, I've a query

Re: Query on CodingStyle: indentation

2012-10-19 Thread Kumar amit mehta
On Fri, Oct 19, 2012 at 03:03:28PM +0800, Adam Lee wrote: On Thu, Oct 18, 2012 at 10:31:29PM -0700, Kumar amit mehta wrote: Hi, I've a query regarding the coding style for Linux Kernel code. I'm reading the CodingStyle under Documentation and what I've understood is that I shouldn't

Query on kernel module Makefile

2012-10-19 Thread Kumar amit mehta
I came across the following information in ~Documentation/kbuild/makefiles.txt snip --- 3.7 Compilation flags ccflags-y, asflags-y and ldflags-y These three flags apply only to the kbuild makefile in which they are assigned. They are used for all the normal cc, as and ld

Re: Network Byte order not reached reading from a sock RAW

2012-10-15 Thread Kumar amit mehta
On Mon, Oct 15, 2012 at 07:46:08AM +, Pietro Paolini wrote: Hello, Thanks for your answer, my question is why when I read from the buffer data is already in host byte order and not in network byte order. Thanks Pietro Paolini. Hi Pietro, The host doesn't care how the data has

Re:

2012-10-15 Thread Kumar amit mehta
On Mon, Oct 15, 2012 at 04:23:59PM +0530, Niroj Pokhrel wrote: Thank Matthias!!! I have tried using printk . What I really want to do now is to implement the methods I have written by calling from the user space. Like I want to read or write to the character devices via user space. Did you

Re: Error while sending patch using git send-email

2012-03-13 Thread Amit Mehta
On Tuesday 13 March 2012 11:28 PM, Alexandru Juncu wrote: On Tue, Mar 13, 2012 at 7:43 PM, Amit Mehta gmate.a...@gmail.com wrote: Hi All, This is not a Linux Kernel related query but is rather on the infrastructure to manage patches using git. Before asking here, I did some search

Re: Need help: Generating patch using git

2012-03-07 Thread amit mehta
I was wondering if I need to go through the entire kernel build process and boot from the modified kernel and do some tests before sending this patch to kernel-janitor mailing list and the relevant maintainers. Hi Amit If it were me I would compile and boot test this anyway (especially

Re: Need help: Generating patch using git

2012-03-05 Thread Amit Mehta
You can remote track linux-next from your existing repo. (this is how I do it.) cd into your linux-2.6/ and do this; $ git remote add linux-next git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git $ git fetch linux-next $ git fetch --tags linux-next You will then be all

Re: Need help: Generating patch using git

2012-01-31 Thread amit mehta
Just a couple of thoughts, Amit - you seem to have your kernel tree in /root and be doing everything as root, are you sure you want to do it this way rather than in $HOME as your normal user account? I've access to this machine as root also but as you've suggested I can use my user login

Re: Need help: Generating patch using git

2012-01-30 Thread amit mehta
On Mon, Jan 30, 2012 at 11:02 PM, Srivatsa Bhat bhat.sriva...@gmail.com wrote: On Mon, Jan 30, 2012 at 10:51 PM, amit mehta gmate.a...@gmail.com wrote: Hi, kernel janitors group seem like a good place to start learning linux kernel and after reading some of the information available

Query on Rx Frame processing

2011-10-15 Thread amit mehta
I'm trying to understand Linux Network subsystem and after reading some documents, my broad level understanding for Rx Path is as follows: 1: Card receives the packet. 2: Assume everything is fine, the card DMAs the frame for the driver to process it further. 3: Driver allocate an skb buffer,

kernel version incorporating a particular feature

2011-10-12 Thread amit mehta
How do i find the linux kernel version from which a certain feature was first incorporated. For example , How do i find the first kernel version which had support for GRO (generic receive offload) ? Thanks, Amit ___ Kernelnewbies mailing list

Re: kernel version incorporating a particular feature

2011-10-12 Thread amit mehta
On Wed, Oct 12, 2011 at 2:20 PM, rohan puri rohan.pur...@gmail.com wrote: On Wed, Oct 12, 2011 at 2:14 PM, amit mehta gmate.a...@gmail.com wrote: How do i find the linux kernel version from which a certain feature was first incorporated. For example , How do i find the first kernel version

Re: kernel version incorporating a particular feature

2011-10-12 Thread amit mehta
On Wed, Oct 12, 2011 at 4:46 PM, Jeff Kirsher tar...@gmail.com wrote: On 10/12/2011 02:17 AM, amit mehta wrote: On Wed, Oct 12, 2011 at 2:20 PM, rohan puri rohan.pur...@gmail.com wrote: On Wed, Oct 12, 2011 at 2:14 PM, amit mehta gmate.a...@gmail.com wrote: How do i find the linux kernel

Re: kernel 5.5 kernel and tg3 driver

2011-10-11 Thread amit mehta
On Mon, Oct 10, 2011 at 11:54 PM, sri bskmo...@gmail.com wrote: Thanks for the Inputs. As there is not kernel crash, crash files are not create here to debug more. Is there any way to force the kernel to create kernel crash files under /var/crash. echo 1 /proc/sys/kernel/sysrq echo c

Re: Linux kernel networking stack

2011-10-11 Thread amit mehta
I'm currently referring The Linux TCP/IP Stack: Networking for Embedded Systems - David H. Kaufman . Though I haven't read the book completely but so far it seems to me that it provides a detailed information on most of the Networking data structures and APIs with lot of code snippet from e100

Re: Debugging IP packet through Linux stack

2011-09-22 Thread amit mehta
On Thu, Sep 22, 2011 at 12:56 AM, Abu Rasheda rcpilot2...@gmail.com wrote: I am inserting packets into Linux stack and they are accepted by net_rx function, but are latter dropped. What tools are available in Linux kernel to for debugging this issue. If you know the packet processing path,

Re: I need suggestions for a practical work related with Kernel Development

2011-08-27 Thread amit mehta
On Fri, Aug 26, 2011 at 11:48 PM, Facundo Viale facundo.m.vi...@gmail.com wrote: Hi! I'm new here and i what to introduce myself i'm teacher in a University in the course Operation Systems. During the course the students learn some Operatyng Systems concepts, specially everything relating to

Re: how to enable linux box to dump crash image on local disk

2011-08-18 Thread amit mehta
  It seems there is a bugzilla from Red Hat on this issue(680864) in RHEL 6.0 kernel. Please could you try this issue on RHEL 6.1 kernel ?  Also as mentioned in the https://bugzilla.redhat.com/show_bug.cgi?id=680864, which is similar to your issue, you should be able to see the output of bt

how to enable linux box to dump crash image on local disk

2011-08-17 Thread amit mehta
I've a Linux box which is crashing under a particular test scenario. To debug this issue I was thinking of using the crash (man 8 crash) utility (available by default on recent releases of RHEL and SuSE) . This tool requires the kernel crash dump (vmcore) and the debugging symbols. On my machine,

Re: how to enable linux box to dump crash image on local disk

2011-08-17 Thread amit mehta
On Wed, Aug 17, 2011 at 3:04 PM, amit mehta gmate.a...@gmail.com wrote: I've a Linux box which is crashing under a particular test scenario. To debug this issue I was thinking of using the crash (man 8 crash) utility (available by default on recent releases of RHEL and SuSE) . This tool

Re: how to enable linux box to dump crash image on local disk

2011-08-17 Thread amit mehta
 You need to configure kdump  on  your RHEL system to enable it to dump the vmcore file when the panic happens... Kdump configuration is explained below.. There is a crashkernel boot parameter to be passed to kernel to specify the memory reserved for the crash kernel.

Re: Debugging the linux kernel core dump

2011-08-05 Thread amit mehta
system, i tried this: goon:/boot # gdb -q (gdb) symbol-file System.map-2.6.32.12-0.7-default -readnow `/boot/System.map-2.6.32.12-0.7-default': can't read symbols: File format not recognized. I might be missing something else as well. -Amit On Thu, Aug 4, 2011 at 10:19 PM, amit mehta gmate.a

Re: Debugging the linux kernel core dump

2011-08-04 Thread amit mehta
Not sure about the symbol table, but was your kernel compiled with -g flag (-g to the CFLAGS variable in the kernel Makefile) ? -Amit On Fri, Aug 5, 2011 at 10:42 AM, Akash email2akashj...@gmail.com wrote: Hello, I have a core dump from following machine : # uname -a Linux sing-vto2-dst

Re: understanding the SCSI Specification.

2011-08-01 Thread amit mehta
download sg3-utils and its souce code. good place to begin with. -Amit On Mon, Aug 1, 2011 at 2:41 PM, RKK kulkarni.ra...@gmail.com wrote: HI all, Im working on a storage protocol   which uses SCSI commands  set as the command set and also the SCSI Task Management functions for processing

Re: Need help: How to set .RECIPEPREFIX variable to whitespaces

2011-07-25 Thread amit mehta
that version yet, so if you use this feature your makefiles will not be portable to older systems (you might not care about that). - Amit On Mon, Jul 18, 2011 at 10:40 AM, amit mehta gmate.a...@gmail.com wrote: Thank you. With your work around I do not need to edit my vimrc file everytime i need

Need help: How to set .RECIPEPREFIX variable to whitespaces

2011-07-13 Thread amit mehta
Hi, How to set .RECIPEPREFIX variable to whitespace(say 4 whitespces) , so that make uses this particular set of characters to identify the recipe for a particular target. In my $HOME/.vimrc file, for code indentation purpose, I've put the following entries to replace tabs with 4 whitespaces:

Re: Need help understanding memory models, cpu modes and address translation

2011-07-13 Thread amit mehta
Tons of resource http://wiki.osdev.org/ On Wed, Jul 13, 2011 at 2:07 PM, Vaibhav Jain vjoss...@gmail.com wrote: Hi, Thanks for the link.I really appreciate but I need something more basic and something that explains these concepts from a broader perspective and not in the context of a

Re: Need basics of booting process

2011-07-11 Thread amit mehta
I find these two articles on this topic by the same guy extremely helpful: http://duartes.org/gustavo/blog/post/how-computers-boot-up http://duartes.org/gustavo/blog/post/kernel-boot-process -Amit On Sun, Jul 10, 2011 at 10:07 PM, Niamathullah sharief newbie...@gmail.com wrote: Dear friends,

Re: kernel debugging nodes missing from /sys/kernel

2011-06-27 Thread amit mehta
That was quick Silesh. Thanks it worked. On Mon, Jun 27, 2011 at 11:22 AM, Silesh C V sailes...@gmail.com wrote: Hi, On Mon, Jun 27, 2011 at 2:30 PM, amit mehta gmate.a...@gmail.com wrote: I've two 64 bit machines,both have Linux kernel running, but on one of the machines I'm not seeing

kernel debugging nodes missing from /sys/kernel

2011-06-26 Thread amit mehta
I've two 64 bit machines,both have Linux kernel running, but on one of the machines I'm not seeing any node under /sys/kernel/debug. I checked some config(CONFIG_*) in the kernel configuration file on both machines but they seem to be the same. More information below: 1: SuseX86_64:~ # uname -a

Kernel log mechanism: How to log messages in a different file

2011-06-25 Thread amit mehta
Hi, I've written some kernel modules using kprobes infrastructure to grab some more information on network packets. I've lots of printk which by default show up in syslog file(/var/log/messages), I was wondering if there are some method to redirect my printkS to appear in somewhere else(say

How to traverse the linked list of kernel modules

2011-06-18 Thread amit mehta
kernel modules are represented by the data structure(struct module) as defined in ~include/linux/module.h, and they seem to be connected by a doubly circular link list. Now suppose I want to access all the elements in this linked list of kernel modules(modules that show up in /proc/modules), then

Re: kernel module spanning multiple files

2011-06-15 Thread amit mehta
U printk snip Regards, amit On Wed, Jun 15, 2011 at 3:29 PM, amit mehta gmate.a...@gmail.com wrote: Hi, After looking at some Makefiles under Linux Driver sources which uses multiple files to create the target, i tried to write a simple hello world kernel module spanning multiple

kprobes for fun and profit :)

2011-03-03 Thread amit mehta
Hi, I recently got to know about kprobes for dynamically putting probes inside Linux kernel. I tried some simple probes and it worked well. Now to extend the understanding on kprobes and using it for some useful work, I'm planning to gather some data on a particular driver(say network driver) by