From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18167 invoked by alias); 3 Apr 2013 12:29:55 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 18137 invoked by uid 89); 3 Apr 2013 12:29:55 -0000 X-Spam-SWARE-Status: No, score=-7.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 03 Apr 2013 12:29:53 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r33CTnZ0020491 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 3 Apr 2013 08:29:49 -0400 Received: from fche.csb (vpn-53-221.rdu2.redhat.com [10.10.53.221]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r33CTmco026610; Wed, 3 Apr 2013 08:29:48 -0400 Received: by fche.csb (Postfix, from userid 2569) id 239B658164; Wed, 3 Apr 2013 08:29:48 -0400 (EDT) To: Frederic Weisbecker Cc: Mel Gorman , Ingo Molnar , LKML , SystemTap Subject: Re: systemtap broken by removal of register_timer_hook References: <20130403075017.GA2534@suse.de> From: fche@redhat.com (Frank Ch. Eigler) Date: Wed, 03 Apr 2013 12:29:00 -0000 In-Reply-To: (Frederic Weisbecker's message of "Wed, 3 Apr 2013 13:01:23 +0200") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2013-q2/txt/msg00003.txt.bz2 Frederic Weisbecker writes: > [...] > Sometimes I don't mind keeping around code in the kernel for out of > tree users, depending on the case. But in this specific matter we have > more standard ways to do this kind of hook: kprobes, static > tracepoints. A tracepoint on the timer tick would be useful BTW, and > you could reuse it. Thanks for noticing! IMO kprobes would be too heavyweight for this. A new static tracepoint would be fine, especially if it passes the same pt_regs* pointer as the former hook did. - FChE