From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758600Ab0JSNIb (ORCPT ); Tue, 19 Oct 2010 09:08:31 -0400 Received: from canuck.infradead.org ([134.117.69.58]:47572 "EHLO canuck.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758235Ab0JSNIa convert rfc822-to-8bit (ORCPT ); Tue, 19 Oct 2010 09:08:30 -0400 Subject: Re: [PATCH] tracing: Cleanup the convoluted softirq tracepoints From: Peter Zijlstra To: Thomas Gleixner Cc: Koki Sanagi , Ingo Molnar , mathieu.desnoyers@efficios.com, Frederic Weisbecker , Steven Rostedt , nhorman@tuxdriver.com, scott.a.mcmillan@intel.com, laijs@cn.fujitsu.com, "H. Peter Anvin" , LKML , eric.dumazet@gmail.com, kaneshige.kenji@jp.fujitsu.com, David Miller , izumi.taku@jp.fujitsu.com, kosaki.motohiro@jp.fujitsu.com, Heiko Carstens , "Luck, Tony" In-Reply-To: References: <4C724298.4050509@jp.fujitsu.com> <20100908112529.GA25931@elte.hu> <1287395077.29097.1543.camel@twins> <1287398936.29097.1548.camel@twins> <4CBD79CF.2060706@jp.fujitsu.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Tue, 19 Oct 2010 15:08:07 +0200 Message-ID: <1287493687.1994.10.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2010-10-19 at 15:00 +0200, Thomas Gleixner wrote: > > With the addition of trace_softirq_raise() the softirq tracepoint got > even more convoluted. Why the tracepoints take two pointers to assign > an integer is beyond my comprehension. > > But adding an extra case which treats the first pointer as an unsigned > long when the second pointer is NULL including the back and forth > type casting is just horrible. > > Convert the softirq tracepoints to take a single unsigned int argument > for the softirq vector number and fix the call sites. > > Signed-off-by: Thomas Gleixner Acked-by: Peter Zijlstra A much needed cleanup indeed!