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]Add lacked syscall.unshare to tapset


Hi Zhaolei,

On Tue, 2008-06-03 at 13:43 +0800, Zhaolei wrote:
> Following patch adds support for lacked syscall.unshare.
> If no objection, I will commit it.
>
> +# unshare ____________________________________________________
> +# new function with 2.6.16
> +# long sys_unshare(unsigned long unshare_flags)
> +probe syscall.unshare = kernel.function("sys_unshare") ? {
> + name = "unshare"
> + unshare_flags = $unshare_flags
> + argstr = sprintf("%d", unshare_flags)
> +}

Are these flags the same as one would use for clone/fork?
In that case you might want to use
  argstr = __fork_flags(unshare_flags)
__fork_flags() is defined in aux_syscalls.stp.

Cheers,

Mark


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