From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27416 invoked by alias); 19 Jun 2014 20:34:48 -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 27386 invoked by uid 48); 19 Jun 2014 20:34:45 -0000 From: "jlebon at redhat dot com" To: systemtap@sourceware.org Subject: [Bug runtime/16861] probes aren't re-registered after module reload Date: Thu, 19 Jun 2014 20:34:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jlebon at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q2/txt/msg00277.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16861 --- Comment #2 from Jonathan Lebon --- Created attachment 7647 --> https://sourceware.org/bugzilla/attachment.cgi?id=7647&action=edit Patch In this patch, we only call back to systemtap_module_refresh() for the COMING event. We also pass the module name so that only kprobes for that module are refreshed. With the patch: $ stap -e 'probe module("btrfs").function("*_btrfs_fs").call { print ln(ppfunc()) }' -c 'sudo sh -c "modprobe btrfs; modprobe -r btrfs; modprobe btrfs; modprobe -r btrfs"' init_btrfs_fs exit_btrfs_fs init_btrfs_fs exit_btrfs_fs $ -- You are receiving this mail because: You are the assignee for the bug.