This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Tracepoint Tapset for Memory Subsystem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]