From patchwork Wed Nov 27 23:45:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 1201840 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-107481-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="to7PdgGQ"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47Ncpt3P2Kz9sS9 for ; Thu, 28 Nov 2019 10:45:58 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=JXo8iDRfppjJVyE0grfBVWRy6nnvX tLj9FLCePDsiyMKD8OQ33YAd/hnbN1L1SbYdMlixnJNZY7I/fXAQqyCkZ/2pgHSU xOdu5mdCKT/8V0YbscyI7h2tgj8QBSAqLB5YwqmLQU4hsdo9SNdJx4bHXRhmuN10 E1cimwYpYNlyvQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=zVn8HCPaDCWeqtYmDAtxWrrND6o=; b=to7 PdgGQNhG15dT00n89ZpxeEq65ULRqS/ViysK6mxNaScESKkvXqAAupQ/FnF4IunU kB7bdNZEOBXjKr4Oo5fwKvsRXaI3BQuqAQOeQnk78R3uHp2BFuu0DNFHGrl7P9Zi LMotG8in1lvZtgPZ6kLEKU4QIzD2o1XQNvzxomRY= Received: (qmail 89346 invoked by alias); 27 Nov 2019 23:45:52 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 89334 invoked by uid 89); 27 Nov 2019 23:45:50 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, SUBJ_OBFU_PUNCT_FEW autolearn=ham version=3.3.1 spammy=reclaim X-HELO: esa2.mentor.iphmx.com IronPort-SDR: F6ty2j6uDw/Z8wuqbKUS24+Vk0rf18R+dEnnTtWPIHAiOI2KjZUK/aZN/fWSRN9QrQvcF9hA9I oRZNU99ZovZd2FjoV/iNjCiOc0NMgzDD/MhAWLmhkH6k/eXZK+Vh2BipqqApLkeriQrRsAsoZp pY2NBAdwSgDdoVrD9bPZE7Dc1nH0DokYQ4/lnCzIOPWiQXnSDUe2OWUUSU21Lqpt6aKL5SETZj pTCAVGA0bfL3ZSVuUNDNF+mdNZK9rMJRrQEucHosXFBrc6qDflyqe07AXO6xLJY1iYQd+fXj5+ wwM= IronPort-SDR: t//2tH7gc4L7qttjeUgUDfRLZXJg0uL1dwDgR8YKP9mIHmy8EB9wfRfzw67wTL124a8u0ZCPV6 rhSQ1P0dyZYEUOwwc88Cvqsd0w2io0wN2IBJnKwKRq2n7XWkIaEPWAY8xXtOEGcDatu5doNKjN ELLX0NAhzz3aXFxNRtTLiSJ875H75qaovIJeTH0vKe6xfjluP4gCRmT/5SCe/IbWe9yn0bI+lU hWez8kU1bn5TLJrpXlD9xhd3VPTo05I/CyKpX5PyibP367T4YM8pnrxoruHSnuEVM1Z/SC4OlF uTM= Date: Wed, 27 Nov 2019 23:45:42 +0000 From: Joseph Myers To: Subject: Define MADV_COLD and MADV_PAGEOUT from Linux 5.4 Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Linux 5.4 adds constants MADV_COLD and MADV_PAGEOUT (defined with the same values on all architectures). This patch adds them to bits/mman-linux.h. Tested for x86_64. diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/sysdeps/unix/sysv/linux/bits/mman-linux.h index d6755c59d5..c0b11bfe24 100644 --- a/sysdeps/unix/sysv/linux/bits/mman-linux.h +++ b/sysdeps/unix/sysv/linux/bits/mman-linux.h @@ -87,6 +87,8 @@ # define MADV_DODUMP 17 /* Clear the MADV_DONTDUMP flag. */ # define MADV_WIPEONFORK 18 /* Zero memory on fork, child only. */ # define MADV_KEEPONFORK 19 /* Undo MADV_WIPEONFORK. */ +# define MADV_COLD 20 /* Deactivate these pages. */ +# define MADV_PAGEOUT 21 /* Reclaim these pages. */ # define MADV_HWPOISON 100 /* Poison a page for testing. */ #endif