From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32293 invoked by alias); 22 Sep 2009 21:23:31 -0000 Received: (qmail 32286 invoked by uid 22791); 22 Sep 2009 21:23:30 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_40,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Sep 2009 21:23:25 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8MLNOQ8010955 for ; Tue, 22 Sep 2009 17:23:24 -0400 Received: from fche.csb (vpn-240-19.phx2.redhat.com [10.3.240.19]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8MLNO52031443; Tue, 22 Sep 2009 17:23:24 -0400 Received: by fche.csb (Postfix, from userid 2569) id C10EE5810A; Tue, 22 Sep 2009 17:23:23 -0400 (EDT) To: David Smith Cc: Rajasekhar Duddu , systemtap@sources.redhat.com Subject: Re: [PATCH] Tracepoint Tapset for Memory Subsystem References: <20090919050102.GA3767@rajduddu> <4AB90BE0.4030405@redhat.com> From: fche@redhat.com (Frank Ch. Eigler) Date: Tue, 22 Sep 2009 21:23:00 -0000 In-Reply-To: <4AB90BE0.4030405@redhat.com> (David Smith's message of "Tue, 22 Sep 2009 12:39:44 -0500") 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 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-q3/txt/msg00829.txt.bz2 David Smith writes: > [...] > function gfp_f:string (gfp_flag:long) > %{ > switch (THIS->gfp_flag) { > case GFP_ATOMIC: > strlcpy(THIS->__retvalue, "GFP_ATOMIC", MAXSTRINGLEN); > break; > case GFP_KERNEL: > strlcpy(THIS->__retvalue, "GFP_KERNEL", MAXSTRINGLEN); > break; > %} Actually, those values are bit masks, so might as well be treated like the open flags in syscall*.stp. - FChE