Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1DDFE77187 for ; Wed, 18 Dec 2024 18:49:32 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 706D83EC9E2 for ; Wed, 18 Dec 2024 19:49:31 +0100 (CET) Received: from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [IPv6:2001:4b78:1:20::5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 70B333ED62D for ; Wed, 18 Dec 2024 19:45:32 +0100 (CET) Authentication-Results: in-5.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.cz (client-ip=195.135.223.131; helo=smtp-out2.suse.de; envelope-from=chrubis@suse.cz; receiver=lists.linux.it) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-5.smtp.seeweb.it (Postfix) with ESMTPS id B3C89633F77 for ; Wed, 18 Dec 2024 19:45:31 +0100 (CET) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 19B461F396; Wed, 18 Dec 2024 18:45:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1734547531; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gvImkdXFX1HTDkAbTgpG8UXLjowtocEkLLADRA6oM5c=; b=qkmAwQgXi/cVRi2J4n3d2bbZfvwqIPJFr/V2NmxLRW4XB7yIP81D5JRr+FMwGbcHjUMG1n HMGXaGU3xUDYHaamseuzk3E8cxlXOwf9BUBLPvzlsJXUfgbpe4YPQhJvp2VXU+DF13E+yM cr8POxLi9FuJTCahUB+qIbOClk6XCns= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1734547531; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gvImkdXFX1HTDkAbTgpG8UXLjowtocEkLLADRA6oM5c=; b=6LT5ADod8rHMcKm7WfxP1uGBdMyKsAhinTj8bK5c+wk9tYJWGBvaAO7HX2hRh5ve/kWdmm PauhuKwBZGdCJeCQ== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=qkmAwQgX; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=6LT5ADod DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1734547531; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gvImkdXFX1HTDkAbTgpG8UXLjowtocEkLLADRA6oM5c=; b=qkmAwQgXi/cVRi2J4n3d2bbZfvwqIPJFr/V2NmxLRW4XB7yIP81D5JRr+FMwGbcHjUMG1n HMGXaGU3xUDYHaamseuzk3E8cxlXOwf9BUBLPvzlsJXUfgbpe4YPQhJvp2VXU+DF13E+yM cr8POxLi9FuJTCahUB+qIbOClk6XCns= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1734547531; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gvImkdXFX1HTDkAbTgpG8UXLjowtocEkLLADRA6oM5c=; b=6LT5ADod8rHMcKm7WfxP1uGBdMyKsAhinTj8bK5c+wk9tYJWGBvaAO7HX2hRh5ve/kWdmm PauhuKwBZGdCJeCQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 0AB96137CF; Wed, 18 Dec 2024 18:45:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id xKxeAUsYY2eFcQAAD6G6ig (envelope-from ); Wed, 18 Dec 2024 18:45:31 +0000 From: Cyril Hrubis To: ltp@lists.linux.it Date: Wed, 18 Dec 2024 19:45:18 +0100 Message-ID: <20241218184518.16190-14-chrubis@suse.cz> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241218184518.16190-1-chrubis@suse.cz> References: <20241218184518.16190-1-chrubis@suse.cz> MIME-Version: 1.0 X-Rspamd-Queue-Id: 19B461F396 X-Spamd-Result: default: False [-3.01 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:email,suse.cz:dkim,suse.cz:mid]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[suse.cz:+] X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Rspamd-Action: no action X-Virus-Scanned: clamav-milter 1.0.3 at in-5.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 13/13] testcases/kernel/mem: Remove library X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Now that the last bits of the library are unused we can remove it safely. Signed-off-by: Cyril Hrubis --- testcases/kernel/mem/include/libmem.mk | 43 -------------------------- testcases/kernel/mem/include/mem.h | 25 --------------- testcases/kernel/mem/lib/Makefile | 27 ---------------- testcases/kernel/mem/lib/mem.c | 30 ------------------ 4 files changed, 125 deletions(-) delete mode 100644 testcases/kernel/mem/include/libmem.mk delete mode 100644 testcases/kernel/mem/include/mem.h delete mode 100644 testcases/kernel/mem/lib/Makefile delete mode 100644 testcases/kernel/mem/lib/mem.c diff --git a/testcases/kernel/mem/include/libmem.mk b/testcases/kernel/mem/include/libmem.mk deleted file mode 100644 index b6d45f0fc..000000000 --- a/testcases/kernel/mem/include/libmem.mk +++ /dev/null @@ -1,43 +0,0 @@ -# -# Copyright (C) 2012 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -# the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# - -MEM_SRCDIR := $(abs_top_srcdir)/testcases/kernel/mem -LIBMEM_SRCDIR := $(MEM_SRCDIR)/lib - -MEM_DIR := $(top_builddir)/testcases/kernel/mem -LIBMEM_DIR := $(MEM_DIR)/lib -LIBMEM := $(LIBMEM_DIR)/libmem.a -FILTER_OUT_DIRS := $(LIBMEM_DIR) -CFLAGS += -I$(MEM_SRCDIR)/include -pthread -LDLIBS += $(NUMA_LIBS) -lmem -lltp -LDFLAGS += -L$(LIBMEM_DIR) - -$(LIBMEM_DIR): - mkdir -p "$@" - -$(LIBMEM): $(LIBMEM_DIR) - $(MAKE) -C $^ -f "$(LIBMEM_SRCDIR)/Makefile" all - -MAKE_DEPS += $(LIBMEM) - -trunk-clean:: | lib-clean - -lib-clean:: $(LIBMEM_DIR) - $(MAKE) -C $^ -f "$(LIBMEM_SRCDIR)/Makefile" clean - -include $(top_srcdir)/testcases/kernel/include/lib.mk diff --git a/testcases/kernel/mem/include/mem.h b/testcases/kernel/mem/include/mem.h deleted file mode 100644 index 25389f34c..000000000 --- a/testcases/kernel/mem/include/mem.h +++ /dev/null @@ -1,25 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * Copyright (c) Linux Test Project, 2011-2021 - */ -#ifndef _MEM_H -#define _MEM_H -#include "config.h" -#include "tst_test.h" -#include "ksm_helper.h" -#include "tst_memutils.h" - -#define MB (1UL<<20) -#define KB (1UL<<10) -#define PATH_SYSVM "/proc/sys/vm/" -#define PATH_MEMINFO "/proc/meminfo" - -/* KSM */ - -/* HUGETLB */ - -#define PATH_SHMMAX "/proc/sys/kernel/shmmax" - -void write_memcg(void); - -#endif diff --git a/testcases/kernel/mem/lib/Makefile b/testcases/kernel/mem/lib/Makefile deleted file mode 100644 index d4624e9b0..000000000 --- a/testcases/kernel/mem/lib/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# -# Copyright (C) 2010 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -# the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# - -top_srcdir ?= ../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk - -CPPFLAGS += -I$(abs_srcdir)/../include -INTERNAL_LIB := libmem.a - -include $(top_srcdir)/testcases/kernel/include/lib.mk -include $(top_srcdir)/include/mk/lib.mk diff --git a/testcases/kernel/mem/lib/mem.c b/testcases/kernel/mem/lib/mem.c deleted file mode 100644 index 4e5c0b873..000000000 --- a/testcases/kernel/mem/lib/mem.c +++ /dev/null @@ -1,30 +0,0 @@ -#define TST_NO_DEFAULT_MAIN - -#include "config.h" -#include -#include -#include -#include -#include -#include -#include -#include -#if HAVE_NUMA_H -#include -#endif -#if HAVE_NUMAIF_H -#include -#endif -#include -#include -#include -#include -#include -#include - -#include "mem.h" -#include "numa_helper.h" - - -/* KSM */ - -- 2.45.2 -- Mailing list info: https://lists.linux.it/listinfo/ltp