Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7042648ybi; Thu, 13 Jun 2019 08:36:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRSrd2plXzMb8L6NIln4yt0fgFhMYNjhFpo1QrGgXcw9v41ErdSp5Ua+py5bZjKYlG6gdD X-Received: by 2002:aa7:8203:: with SMTP id k3mr89113988pfi.124.1560440190646; Thu, 13 Jun 2019 08:36:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560440190; cv=none; d=google.com; s=arc-20160816; b=uxZweqDRnZseFVGi7zIC9oZq5m3KfxUN0oCv2bl2wF8ob3VS5j2NYNZ9iW8AXpo8Dx gmtQmPBjkpIJVjU7rKJZVPMZH+Qxc1oLN3sy398RQP7s/Pq18Oj/mtDPVufrhY28FJOu 8AhLc4zCBQTzMbNoQ/oFz98Q8gU8CrApcWisiRnp87q09QoAAeDWp+w3W8BDT7XkF24V nBHMYcS8xhNohbUdmF+nlEWCwARrFooPrf450oPzggj2sUXTjDg93blVL+xXliFlOrHt EoDwqAormbYe7tHccEeVYzD+gyyFs7lrZK1dRtfzqCUyNeTfMvkFE/mdF8uQtcEa7HsR I1pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=3vJoe4QOYmSpzL3TX3nF/EcZqCXILy8LMNIEV2dPMlw=; b=xwiM07r5kXv/uEzLM2TWu17Sbrar6N6kHn2ih43gJQXKnTiCZoawAAredqF9QtADJl aDlPaThUkPvs2QuEAc91f08OZJSw31mFa2UJP5Y6ZTjSlC5x9coylXctBqTpsoAEICAk AkewOmaAvZCSdLwTHh1Ue6Gi7TPYHHIcbMmNpSyqkMF9A6+W9VHM3R7oIcTQyV3hetVO /32gmOQLLZfe7LUw4WMfCox1jUUhIHALPo5DGlvpW0i2XvIAp/kEkAN1XDVrDt7I80xu TmcT6SRsoXwGzloEQa2p2473lmOKnxMm4Qh1n9ZVeR/5IoqqhZXMhBHDn+Yl9kV7LwYI Gxpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4si3580230plb.206.2019.06.13.08.36.15; Thu, 13 Jun 2019 08:36:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727716AbfFMPfV (ORCPT + 99 others); Thu, 13 Jun 2019 11:35:21 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:43918 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727846AbfFMK25 (ORCPT ); Thu, 13 Jun 2019 06:28:57 -0400 Received: from mail-wr1-f70.google.com ([209.85.221.70]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1hbMyW-0002n3-1k for linux-kernel@vger.kernel.org; Thu, 13 Jun 2019 10:28:56 +0000 Received: by mail-wr1-f70.google.com with SMTP id q16so8621725wrx.5 for ; Thu, 13 Jun 2019 03:28:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3vJoe4QOYmSpzL3TX3nF/EcZqCXILy8LMNIEV2dPMlw=; b=JhtA3jYZpgQ6M0FdqGTvwHGxguW2moCsmpkCrHaDKa6DIsUrdSZnHZQyhaUsIH5wI5 8dIzLAGaxJWMkU8lOstr61fC6gcbgb8a3zR8B0tQT7ga+hvsER/+aAYZSXdMvhh7apBv 9hYd+Em2gHHkVBaqEIjkh85Oi/dImXVLwlu3yfm/QeAcfXZvVZRyDmBJk3YwSoOxSjRH ATSirKbcJhOl2MwgUbGi93HrsSRnVWTGdG4hHY7xIGJ+uN3gpK4d1Hdn6Av4+/qpysx5 B3gZRWO2worIwPxR3L/GtmZHu6sGdNM9xM5PtR+VFeYAMoGXjJqHvXquNTIr7x5eBYso C0IQ== X-Gm-Message-State: APjAAAUAYGdONnCbMFA5Pk5N0iwgexpgVAxvenr033vNd9mcElRL0Tmt 0sSTT8wgGT8BnM/YD4K6MQJbs11DeZTAjrLhQydAyWQZrjUVQN3pGQx7dvAczPS/Xdei6RPBMsQ cgR1G4DfuH37TBRH2GItqiJz4H89bgB7dBD4djIVZoXS9A4loe6uYM73Z X-Received: by 2002:a7b:c313:: with SMTP id k19mr3050160wmj.2.1560421735777; Thu, 13 Jun 2019 03:28:55 -0700 (PDT) X-Received: by 2002:a7b:c313:: with SMTP id k19mr3050140wmj.2.1560421735553; Thu, 13 Jun 2019 03:28:55 -0700 (PDT) MIME-Version: 1.0 References: <20190612064752.6701-1-po-hsu.lin@canonical.com> <20190612.092711.1626983045451710048.davem@davemloft.net> In-Reply-To: <20190612.092711.1626983045451710048.davem@davemloft.net> From: Po-Hsu Lin Date: Thu, 13 Jun 2019 18:28:44 +0800 Message-ID: Subject: Re: [PATCH] selftests/net: skip psock_tpacket test if KALLSYMS was not enabled To: David Miller Cc: shuah , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This issue was spotted on Ubuntu linux-kvm kernel, on which the CONFIG_KALLSYMS was disabled intentionally. I think this extra check could be helpful when running the net test directly. $ make -C tools/testing/selftests TARGETS=net run_tests Also, there is an identical check implemented in the ftrace kprobe_args_symbol test. I can send V2 along with CONFIG_KALLSYMS appended to the "config" file if you agree with this. Thanks On Thu, Jun 13, 2019 at 12:27 AM David Miller wrote: > > From: Po-Hsu Lin > Date: Wed, 12 Jun 2019 14:47:52 +0800 > > > The psock_tpacket test will need to access /proc/kallsyms, this would > > require the kernel config CONFIG_KALLSYMS to be enabled first. > > > > Check the file existence to determine if we can run this test. > > > > Signed-off-by: Po-Hsu Lin > > Please just add CONFIG_KALLSYMS to "config".