* [LTP] [PATCH] setns: add ns_name in TINFO
@ 2013-10-17 9:26 Monson Shao
2013-10-17 10:03 ` Jan Stancek
2013-10-17 10:20 ` Wanlong Gao
0 siblings, 2 replies; 3+ messages in thread
From: Monson Shao @ 2013-10-17 9:26 UTC (permalink / raw)
To: ltp-list
Make it clear which namespace is enabled and being tested.
before:
setns01 0 TINFO : ns_fds[0]=5, ns_types[0]=0x8000000
setns01 0 TINFO : ns_fds[1]=6, ns_types[1]=0x20000
setns01 0 TINFO : ns_fds[2]=7, ns_types[2]=0x40000000
setns01 0 TINFO : ns_fds[3]=8, ns_types[3]=0x20000000
setns01 0 TINFO : ns_fds[4]=9, ns_types[4]=0x4000000
after:
setns01 0 TINFO : ns_name=ipc, ns_fds[0]=5, ns_types[0]=0x8000000
setns01 0 TINFO : ns_name=mnt, ns_fds[1]=6, ns_types[1]=0x20000
setns01 0 TINFO : ns_name=net, ns_fds[2]=7, ns_types[2]=0x40000000
setns01 0 TINFO : ns_name=pid, ns_fds[3]=8, ns_types[3]=0x20000000
setns01 0 TINFO : ns_name=uts, ns_fds[4]=9, ns_types[4]=0x4000000
Signed-off-by: Monson Shao <jshao@redhat.com>
---
testcases/kernel/syscalls/setns/setns.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/kernel/syscalls/setns/setns.h b/testcases/kernel/syscalls/setns/setns.h
index 23bdb2e..a05e673 100644
--- a/testcases/kernel/syscalls/setns/setns.h
+++ b/testcases/kernel/syscalls/setns/setns.h
@@ -53,8 +53,8 @@ static void init_ns_type(int clone_type, const char *proc_name)
if (fd != -1) {
ns_types[ns_total] = clone_type;
ns_fds[ns_total] = fd;
- tst_resm(TINFO, "ns_fds[%d]=%d, ns_types[%d]=0x%x", ns_total,
- fd, ns_total, clone_type);
+ tst_resm(TINFO, "ns_name=%s, ns_fds[%d]=%d, ns_types[%d]=0x%x",
+ proc_name, ns_total, fd, ns_total, clone_type);
ns_total++;
}
}
--
1.8.3.1
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [LTP] [PATCH] setns: add ns_name in TINFO
2013-10-17 9:26 [LTP] [PATCH] setns: add ns_name in TINFO Monson Shao
@ 2013-10-17 10:03 ` Jan Stancek
2013-10-17 10:20 ` Wanlong Gao
1 sibling, 0 replies; 3+ messages in thread
From: Jan Stancek @ 2013-10-17 10:03 UTC (permalink / raw)
To: Monson Shao; +Cc: ltp-list
----- Original Message -----
> From: "Monson Shao" <jshao@redhat.com>
> To: ltp-list@lists.sourceforge.net
> Sent: Thursday, 17 October, 2013 11:26:45 AM
> Subject: [LTP] [PATCH] setns: add ns_name in TINFO
>
> Make it clear which namespace is enabled and being tested.
Fine by me, it's easier to read than those flags.
Reviewed-by: Jan Stancek <jstancek@redhat.com>
Regards,
Jan
>
> before:
> setns01 0 TINFO : ns_fds[0]=5, ns_types[0]=0x8000000
> setns01 0 TINFO : ns_fds[1]=6, ns_types[1]=0x20000
> setns01 0 TINFO : ns_fds[2]=7, ns_types[2]=0x40000000
> setns01 0 TINFO : ns_fds[3]=8, ns_types[3]=0x20000000
> setns01 0 TINFO : ns_fds[4]=9, ns_types[4]=0x4000000
>
> after:
> setns01 0 TINFO : ns_name=ipc, ns_fds[0]=5, ns_types[0]=0x8000000
> setns01 0 TINFO : ns_name=mnt, ns_fds[1]=6, ns_types[1]=0x20000
> setns01 0 TINFO : ns_name=net, ns_fds[2]=7, ns_types[2]=0x40000000
> setns01 0 TINFO : ns_name=pid, ns_fds[3]=8, ns_types[3]=0x20000000
> setns01 0 TINFO : ns_name=uts, ns_fds[4]=9, ns_types[4]=0x4000000
>
> Signed-off-by: Monson Shao <jshao@redhat.com>
> ---
> testcases/kernel/syscalls/setns/setns.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/testcases/kernel/syscalls/setns/setns.h
> b/testcases/kernel/syscalls/setns/setns.h
> index 23bdb2e..a05e673 100644
> --- a/testcases/kernel/syscalls/setns/setns.h
> +++ b/testcases/kernel/syscalls/setns/setns.h
> @@ -53,8 +53,8 @@ static void init_ns_type(int clone_type, const char
> *proc_name)
> if (fd != -1) {
> ns_types[ns_total] = clone_type;
> ns_fds[ns_total] = fd;
> - tst_resm(TINFO, "ns_fds[%d]=%d, ns_types[%d]=0x%x", ns_total,
> - fd, ns_total, clone_type);
> + tst_resm(TINFO, "ns_name=%s, ns_fds[%d]=%d, ns_types[%d]=0x%x",
> + proc_name, ns_total, fd, ns_total, clone_type);
> ns_total++;
> }
> }
> --
> 1.8.3.1
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] [PATCH] setns: add ns_name in TINFO
2013-10-17 9:26 [LTP] [PATCH] setns: add ns_name in TINFO Monson Shao
2013-10-17 10:03 ` Jan Stancek
@ 2013-10-17 10:20 ` Wanlong Gao
1 sibling, 0 replies; 3+ messages in thread
From: Wanlong Gao @ 2013-10-17 10:20 UTC (permalink / raw)
To: Monson Shao, ltp-list
On 10/17/2013 05:26 PM, Monson Shao wrote:
> Make it clear which namespace is enabled and being tested.
>
> before:
> setns01 0 TINFO : ns_fds[0]=5, ns_types[0]=0x8000000
> setns01 0 TINFO : ns_fds[1]=6, ns_types[1]=0x20000
> setns01 0 TINFO : ns_fds[2]=7, ns_types[2]=0x40000000
> setns01 0 TINFO : ns_fds[3]=8, ns_types[3]=0x20000000
> setns01 0 TINFO : ns_fds[4]=9, ns_types[4]=0x4000000
>
> after:
> setns01 0 TINFO : ns_name=ipc, ns_fds[0]=5, ns_types[0]=0x8000000
> setns01 0 TINFO : ns_name=mnt, ns_fds[1]=6, ns_types[1]=0x20000
> setns01 0 TINFO : ns_name=net, ns_fds[2]=7, ns_types[2]=0x40000000
> setns01 0 TINFO : ns_name=pid, ns_fds[3]=8, ns_types[3]=0x20000000
> setns01 0 TINFO : ns_name=uts, ns_fds[4]=9, ns_types[4]=0x4000000
>
> Signed-off-by: Monson Shao <jshao@redhat.com>
Applied, thank you.
Wanlong Gao
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-17 10:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-17 9:26 [LTP] [PATCH] setns: add ns_name in TINFO Monson Shao
2013-10-17 10:03 ` Jan Stancek
2013-10-17 10:20 ` Wanlong Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox