Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264391AbUDSMrE (ORCPT ); Mon, 19 Apr 2004 08:47:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264393AbUDSMrE (ORCPT ); Mon, 19 Apr 2004 08:47:04 -0400 Received: from bay14-f34.bay14.hotmail.com ([64.4.49.34]:14597 "EHLO hotmail.com") by vger.kernel.org with ESMTP id S264391AbUDSMrA (ORCPT ); Mon, 19 Apr 2004 08:47:00 -0400 X-Originating-IP: [212.143.127.195] X-Originating-Email: [qwejohn@hotmail.com] From: "John Que" To: linux-kernel@vger.kernel.org Subject: NIC inerrupt Date: Mon, 19 Apr 2004 15:46:58 +0300 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 19 Apr 2004 12:46:59.0195 (UTC) FILETIME=[678CA4B0:01C4260C] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1165 Lines: 37 Hello, I want to count the number of times I reach an NIC receive interrupt. I added a global static variable of type int , and initialized it to 0 ; each time I am in the rx_interrupt of the card I incerement it by one; I got large , non sensible numbers after one or two seconds; So for debug I added printk each time I increment it in rx_interrupt. What I see is that there are unreasonable jumps in the number for instance , it inceremnts sequntially from 1 to 80,then jums to 4500, increments a little sequentially to 4580, and the jums again to 11000 ; Is it got to do with it that this is in interrupt? Any idea what it can be ? (I also tried to declare it as static in the rx_interrupt method and the same happened) Thnx, John _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/