public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Change for aux_syscalls.stp
@ 2007-08-10 14:15 Wenji Huang
  2007-08-10 20:23 ` Frank Ch. Eigler
  0 siblings, 1 reply; 2+ messages in thread
From: Wenji Huang @ 2007-08-10 14:15 UTC (permalink / raw)
  To: systemTAP

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

Hi,

    Since 2.6.16, new SCHED_BATCH policy is added .
   
    Since 2.6

    NFSCTL_UGIDUPDATE and NFSCTL_GETFH are discarded.
    NFSCTL_GETFD and NFSCTL_GETFS are added.

    So need change for aux_syscalls.stp, please kindly review it.

    If no object, I will commit it.

Regards,
Wenji

[-- Attachment #2: aux_syscall.patch --]
[-- Type: text/x-patch, Size: 922 bytes --]

diff -Nurp src/tapset/aux_syscalls.stp src.new/tapset/aux_syscalls.stp
--- src/tapset/aux_syscalls.stp	2007-08-10 04:31:09.000000000 -0400
+++ src.new/tapset/aux_syscalls.stp	2007-08-10 04:30:47.000000000 -0400
@@ -904,8 +904,10 @@ function _nfsctl_cmd_str(cmd) {
 	if(cmd == 2) return "NFSCTL_DELCLIENT"
 	if(cmd == 3) return "NFSCTL_EXPORT"
 	if(cmd == 4) return "NFSCTL_UNEXPORT"
-	if(cmd == 5) return "NFSCTL_UGIDUPDATE"
-	if(cmd == 6) return "NFSCTL_GETFH"
+	/*if(cmd == 5) return "NFSCTL_UGIDUPDATE" DISCARDED
+	if(cmd == 6) return "NFSCTL_GETFH" DISCARDED*/
+	if(cmd == 7) return "NFSCTL_GETFD"
+	if(cmd == 8) return "NFSCTL_GETFS"
 	return sprintf("UNRECOGNIZED VALUE: %d", cmd)
 }
 
@@ -1129,6 +1131,7 @@ function _sched_policy_str(policy) {
    if(policy==0) return "SCHED_OTHER"
    if(policy==1) return "SCHED_FIFO"
    if(policy==2) return "SCHED_RR"
+   if(policy==3) return "SCHED_BATCH"
    return ""
 }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Change for aux_syscalls.stp
  2007-08-10 14:15 Change for aux_syscalls.stp Wenji Huang
@ 2007-08-10 20:23 ` Frank Ch. Eigler
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2007-08-10 20:23 UTC (permalink / raw)
  To: Wenji Huang; +Cc: systemTAP


wenji.huang wrote:

>     Since 2.6.16, new SCHED_BATCH policy is added .
>     Since 2.6
> 
>     NFSCTL_UGIDUPDATE and NFSCTL_GETFH are discarded.
>     NFSCTL_GETFD and NFSCTL_GETFS are added.
> [...]

I'm not sure how to read this.  Do UGIDUPDATE and GETFH never appear
on any 2.6 kernel?  If so, it could be OK to remove them.  If those
values are still used on some 2.6 kernels, I see no harm in keeping
the number->name mappings around.

- FChE

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-10 15:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-10 14:15 Change for aux_syscalls.stp Wenji Huang
2007-08-10 20:23 ` Frank Ch. Eigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).