From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C821DA0503; Fri, 1 Apr 2022 11:10:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B764D42913; Fri, 1 Apr 2022 11:10:16 +0200 (CEST) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by mails.dpdk.org (Postfix) with ESMTP id 9008542913 for ; Fri, 1 Apr 2022 11:10:15 +0200 (CEST) Received: by mail-pj1-f48.google.com with SMTP id mj15-20020a17090b368f00b001c637aa358eso4832415pjb.0 for ; Fri, 01 Apr 2022 02:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smartx-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+nS+pogaTmQ3YbIs+fbcibAatlmg1AMRBWkgPxlpOLc=; b=RWo8b62mtKhRx6FFjT6eSYactV3y4b+kPsLalZz0zd4JvYyAcLGqXBiCRCkavbVMAo cVOJg03o2UbRXn4JhN0UjzTjwUyPrYTGrl0TMlUBloemTYq4yzjvUmEA1cGcl0aYz8N1 rTE90H99oXBliish4sKJSFxCmc4mX7Uz/VoxsJS1XcSXcoQK0AMBRrsevcd0b/Mna7LQ P6in7XHANO/QNuyaDn8l9GaRPdKOvvA5SlXXCfWp44pkof9Li9lqImlOA5tmGeE/oi8m wocA6oYsfZGQVnEfTXdv9YLF4av4wm1KVehfuTvYtCDOUyN1ubvqOXfJkV8NKsuteggn hcjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+nS+pogaTmQ3YbIs+fbcibAatlmg1AMRBWkgPxlpOLc=; b=0owQJUDUPK26fyKx4R8Opylf/AE8H8e11FIKB6Sj3Gm5V8ZXotRIXXTSggGDZGdxHf fxn/WryUvOWIlgryb4pi8ZzoEM/E/0qkGeWayelGuN4VrrrS2hLF2+o1ZPAmwf2jaeKZ XzEUxss0VQ2dtnL6IIWKkuU/tLg8m7zxnbeY1rw38JaftvCPnKqqyyRzaD8h1/F6z9xW H7K1DeXWewthmrUJi9XcoRI/X5kAN13AeQmMzzfGJLJCe+IE6tJqQ86CIRCvGV52CMVf CVO5cFyn4lTuzkm5XOfejaTi70qDxc6C4vv0TYzckmh3AldQnZChhovkjJczCITZ4VAf gdkg== X-Gm-Message-State: AOAM5324jqCsy/BvH7+y/C9ytBKfT1QiG2mLA/cIJQafZn/fe2qtl4i6 rjJr88PLTD4onzrkHaf+PXracA9Zaxfk78fI12mHmYdA X-Google-Smtp-Source: ABdhPJxDbLw/wH9HT07ShjvdlaZmm+fAOP7stibjGtvc4OSk89JfKNa1v3RxO1Ja+YXNbDJMRXhypQ== X-Received: by 2002:a17:90a:3ea6:b0:1c7:1bdd:a31c with SMTP id k35-20020a17090a3ea600b001c71bdda31cmr10909780pjc.36.1648804214770; Fri, 01 Apr 2022 02:10:14 -0700 (PDT) Received: from 64-217.. ([103.177.44.101]) by smtp.gmail.com with ESMTPSA id f16-20020a056a00229000b004fabe756ba6sm2538120pfe.54.2022.04.01.02.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Apr 2022 02:10:14 -0700 (PDT) From: Li Feng To: Anatoly Burakov Cc: dev@dpdk.org, Li Feng Subject: [PATCH v2] eal/linux: enable the hugepage mem dump Date: Fri, 1 Apr 2022 17:10:04 +0800 Message-Id: <20220401091004.3227117-1-fengli@smartx.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220308094125.2716847-1-fengli@smartx.comOD> References: <20220308094125.2716847-1-fengli@smartx.comOD> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org These hugepages include important structures. we should dump these hugepages into a coredump file for debugging when generating a coredump. Signed-off-by: Li Feng --- lib/eal/linux/eal_memalloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/eal/linux/eal_memalloc.c b/lib/eal/linux/eal_memalloc.c index f8b1588cae..93c4f396cf 100644 --- a/lib/eal/linux/eal_memalloc.c +++ b/lib/eal/linux/eal_memalloc.c @@ -677,6 +677,8 @@ alloc_seg(struct rte_memseg *ms, void *addr, int socket_id, __func__); #endif + eal_mem_set_dump(addr, alloc_sz, true); + huge_recover_sigbus(); ms->addr = addr; -- 2.35.1