From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Szk5S-00060Q-2l for ltp-list@lists.sourceforge.net; Fri, 10 Aug 2012 07:56:50 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by sog-mx-3.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1Szk5R-0005IG-1K for ltp-list@lists.sourceforge.net; Fri, 10 Aug 2012 07:56:50 +0000 Message-ID: <5024BD9A.9020104@redhat.com> Date: Fri, 10 Aug 2012 15:51:54 +0800 From: Zhouping Liu MIME-Version: 1.0 References: <74a85e39016c9752a9948a07fe75b84e00191b1f.1344492473.git.caspar@casparzhang.com> <26038550c7f51ea9d7a35b87b4e780f8bb4e05a9.1344569191.git.caspar@casparzhang.com> In-Reply-To: <26038550c7f51ea9d7a35b87b4e780f8bb4e05a9.1344569191.git.caspar@casparzhang.com> Subject: Re: [LTP] [PATCH resend 4/6 v2] numa_helper: move to libkerntest List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7144546274255717811==" Errors-To: ltp-list-bounces@lists.sourceforge.net To: Caspar Zhang Cc: LTP List This is a multi-part message in MIME format. --===============7144546274255717811== Content-Type: multipart/alternative; boundary="------------030000030304060809050907" This is a multi-part message in MIME format. --------------030000030304060809050907 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 08/10/2012 11:26 AM, Caspar Zhang wrote: > libnuma_helper could be used by testcases both under syscalls/ and mem/, > it's better to add a new common lib in their parent dir, so I created > libkerntest under testcases/kernel/lib/, and put numa_helper to it. In > the future, we can add more APIs to it. > > Signed-off-by: Caspar Zhang tested on two machines with 2 & 8 nodes, and offline all cpus in one nodes, not found any issues. Tested-by: Zhouping Liu Thanks, Zhouping > --- > testcases/kernel/Makefile | 4 + > testcases/kernel/include/lib.mk | 37 +++ > testcases/kernel/include/numa_helper.h | 37 +++ > testcases/kernel/lib/Makefile | 28 +++ > testcases/kernel/lib/numa_helper.c | 266 ++++++++++++++++++++++ > testcases/kernel/syscalls/get_mempolicy/Makefile | 2 +- > testcases/kernel/syscalls/mbind/Makefile | 2 +- > testcases/kernel/syscalls/move_pages/Makefile | 2 +- > testcases/kernel/syscalls/numa/Makefile | 22 -- > testcases/kernel/syscalls/numa/Makefile.inc | 27 --- > testcases/kernel/syscalls/numa/lib/Makefile | 26 -- > testcases/kernel/syscalls/numa/lib/numa_helper.c | 266 ---------------------- > testcases/kernel/syscalls/numa/lib/numa_helper.h | 37 --- > 13 files changed, 375 insertions(+), 381 deletions(-) > create mode 100644 testcases/kernel/include/lib.mk > create mode 100644 testcases/kernel/include/numa_helper.h > create mode 100644 testcases/kernel/lib/Makefile > create mode 100644 testcases/kernel/lib/numa_helper.c > delete mode 100644 testcases/kernel/syscalls/numa/Makefile > delete mode 100644 testcases/kernel/syscalls/numa/Makefile.inc > delete mode 100644 testcases/kernel/syscalls/numa/lib/Makefile > delete mode 100644 testcases/kernel/syscalls/numa/lib/numa_helper.c > delete mode 100644 testcases/kernel/syscalls/numa/lib/numa_helper.h > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > Ltp-list mailing list > Ltp-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ltp-list --------------030000030304060809050907 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 08/10/2012 11:26 AM, Caspar Zhang wrote:
libnuma_helper could be used by testcases both under syscalls/ and mem/,
it's better to add a new common lib in their parent dir, so I created
libkerntest under testcases/kernel/lib/, and put numa_helper to it. In
the future, we can add more APIs to it.

Signed-off-by: Caspar Zhang <caspar@casparzhang.com>
tested on two machines with 2 & 8 nodes, and offline all cpus in one nodes, not found any issues.

Tested-by: Zhouping Liu <zliu@redhat.com>

Thanks,
Zhouping

---
 testcases/kernel/Makefile                        |    4 +
 testcases/kernel/include/lib.mk                  |   37 +++
 testcases/kernel/include/numa_helper.h           |   37 +++
 testcases/kernel/lib/Makefile                    |   28 +++
 testcases/kernel/lib/numa_helper.c               |  266 ++++++++++++++++++++++
 testcases/kernel/syscalls/get_mempolicy/Makefile |    2 +-
 testcases/kernel/syscalls/mbind/Makefile         |    2 +-
 testcases/kernel/syscalls/move_pages/Makefile    |    2 +-
 testcases/kernel/syscalls/numa/Makefile          |   22 --
 testcases/kernel/syscalls/numa/Makefile.inc      |   27 ---
 testcases/kernel/syscalls/numa/lib/Makefile      |   26 --
 testcases/kernel/syscalls/numa/lib/numa_helper.c |  266 ----------------------
 testcases/kernel/syscalls/numa/lib/numa_helper.h |   37 ---
 13 files changed, 375 insertions(+), 381 deletions(-)
 create mode 100644 testcases/kernel/include/lib.mk
 create mode 100644 testcases/kernel/include/numa_helper.h
 create mode 100644 testcases/kernel/lib/Makefile
 create mode 100644 testcases/kernel/lib/numa_helper.c
 delete mode 100644 testcases/kernel/syscalls/numa/Makefile
 delete mode 100644 testcases/kernel/syscalls/numa/Makefile.inc
 delete mode 100644 testcases/kernel/syscalls/numa/lib/Makefile
 delete mode 100644 testcases/kernel/syscalls/numa/lib/numa_helper.c
 delete mode 100644 testcases/kernel/syscalls/numa/lib/numa_helper.h



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

--------------030000030304060809050907-- --===============7144546274255717811== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ --===============7144546274255717811== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list --===============7144546274255717811==--