Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 5 Nov 2002 12:29:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 5 Nov 2002 12:29:25 -0500 Received: from web13102.mail.yahoo.com ([216.136.174.147]:31849 "HELO web13102.mail.yahoo.com") by vger.kernel.org with SMTP id ; Tue, 5 Nov 2002 12:29:19 -0500 Message-ID: <20021105173555.88591.qmail@web13102.mail.yahoo.com> Date: Tue, 5 Nov 2002 17:35:55 +0000 (GMT) From: =?iso-8859-1?q?will=20fitzgerald?= Subject: important how to stop interrupts and start them again after finishing what you wanted to do?? To: linux-kernel@vger.kernel.org Cc: linux-c-programming@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1503 Lines: 61 Hi all, does any know how i can stop and start interrupts. i have added a probe function to the kernel to measure network mechanisms times in cycles, called probe_point(). probe_point(int probeid){ get rdtsc time and put id and time into buffer when full use printk to write buffer to disk. } then in mechanisms of interest i place a call to the probe_point()for example, vortex_interrupt(){ probe_point(10);// entry of function . .function stuff . .probe_point(11);// exit of function } the problem is some times my buffer does not record some id's or times. i think this is because another interrupt took place and so the probe_point() exits before it gets a chance to store the id and time. how do i go about setting an non interrupt in the probe_point function to make sure it finishes what its supposed to do? for example: probe_point(int probeid){ do not interrupt me until i do: get rdtsc time and put id and time into buffer when full use printk to write buffer to disk. now i have finshed puting an id and time into a buffer so you can interrpt now. } __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - 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/