Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752253AbdLLQTp (ORCPT ); Tue, 12 Dec 2017 11:19:45 -0500 Received: from mail-ua0-f196.google.com ([209.85.217.196]:41079 "EHLO mail-ua0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750853AbdLLQTo (ORCPT ); Tue, 12 Dec 2017 11:19:44 -0500 X-Google-Smtp-Source: ACJfBosVySbhnnP5izAEZrXwjJI3Qxg6xvLO6r3QfAzbjpW02m6vCH/pvfi5RGL44oomB/VS5W0cnf9xiFt9tmEkiE0= MIME-Version: 1.0 From: Pintu Kumar Date: Tue, 12 Dec 2017 21:49:42 +0530 Message-ID: Subject: [VDSO]: vdso_test failing on arm 32 bit To: linux-kernel@vger.kernel.org, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, luto@amacapital.net, hpa@zytor.com, shuah@kernel.org, stefani@seibold.net, luto@mit.edu, nathan_lynch@mentor.com, hns@goldelico.com, Pintu Kumar Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 888 Lines: 27 Hi All, Did anybody tried running vdso_test (under Documentation/vDSO in kernel 4.1) on an ARM 32 bit system? When I test it on iMX.7 board (kernel 4.1, ARM 32 bit), I get this: # ./vdso_test Could not find __vdso_gettimeofday When I check more in parse_vdso.c, I found that under vdso_sym function, sym->st_name is returning 0 for the first time, and next it returns value 54, then exit and finally vdso_sym returning 0. So, its not able to parse the gettimeofday symbol from the ELF header. When I check arch/arm/kernel/vdso.so, the symbol is present. I even tried for clock_gettime, and even this is also failing. Note: the same test is working fine on Ubuntu 16.04 (64 bit), when compiled with both 32 bit and 64 bit version. Even, the test is working on ARM 64 bit. If anybody is aware, please let me know if vdso_test is supported on ARM 32 bit system or not? Thanks, Pintu