From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8687 invoked by alias); 8 May 2009 20:06:38 -0000 Received: (qmail 8676 invoked by uid 22791); 8 May 2009 20:06:38 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_73,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 May 2009 20:06:32 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n48K6Svp031106 for ; Fri, 8 May 2009 16:06:28 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n48K6SOx027122 for ; Fri, 8 May 2009 16:06:28 -0400 Received: from jistone-t61.sjc.redhat.com (vpn-51-16.sfbay.redhat.com [10.14.51.16]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n48K6QTO026618; Fri, 8 May 2009 16:06:27 -0400 Message-ID: <4A0490C2.6060004@redhat.com> Date: Fri, 08 May 2009 20:06:00 -0000 From: Josh Stone User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090324 Fedora/3.0-2.1.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2 MIME-Version: 1.0 To: Malte Nuhn CC: systemtap@sources.redhat.com Subject: Re: context.stp - read session ID - function sid() References: <4A044A00.8000600@physik.rwth-aachen.de> In-Reply-To: <4A044A00.8000600@physik.rwth-aachen.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2009-q2/txt/msg00517.txt.bz2 On 05/08/2009 08:04 AM, Malte Nuhn wrote: > There's basically no magic in it. I checked that the session information > is stored in the "signal_struct" since Kernel version 2.6.0 - so i guess > it should work on every machine that is running systemtap. Unfortunately, that field is going away -- see this in the kernel: commit 1b0f7ffd0ea27cd3a0b9ca04e3df9522048c32a3 Author: Oleg Nesterov Date: Thu Apr 2 16:58:39 2009 -0700 pids: kill signal_struct-> __pgrp/__session and friends Frank already committed your patch, but can you research whether there's a way to let this continue to work on 2.6.30+? Thanks, Josh