This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH] Tracepoint Tapset for Memory Subsystem
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: David Smith <dsmith at redhat dot com>
- Cc: Rajasekhar Duddu <rajduddu at linux dot vnet dot ibm dot com>, systemtap at sources dot redhat dot com
- Date: Tue, 22 Sep 2009 17:23:23 -0400
- Subject: Re: [PATCH] Tracepoint Tapset for Memory Subsystem
- References: <20090919050102.GA3767@rajduddu> <4AB90BE0.4030405@redhat.com>
David Smith <dsmith@redhat.com> 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