Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933131AbbHKW7j (ORCPT ); Tue, 11 Aug 2015 18:59:39 -0400 Received: from mail9.hitachi.co.jp ([133.145.228.44]:52982 "EHLO mail9.hitachi.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753463AbbHKW7g convert rfc822-to-8bit (ORCPT ); Tue, 11 Aug 2015 18:59:36 -0400 From: =?iso-2022-jp?B?GyRCSj8+PjJtTCYbKEIgLyBISVJBTUFUVRskQiEkGyhCTUFTQU1J?= To: "'Arnaldo Carvalho de Melo'" CC: David Ahern , Jiri Olsa , "Namhyung Kim" , Linux Kernel Mailing List Subject: RE: perf probe -L sys_select or sys_poll Thread-Topic: perf probe -L sys_select or sys_poll Thread-Index: AQHQ1ECcittBV1Lv1UiXAGfqTb4faJ4HZ2Ag Date: Tue, 11 Aug 2015 22:59:32 +0000 Message-ID: <50399556C9727B4D88A595C8584AAB37524B4062@GSjpTKYDCembx32.service.hitachi.net> References: <20150811141827.GJ2521@kernel.org> In-Reply-To: <20150811141827.GJ2521@kernel.org> Accept-Language: ja-JP, en-US Content-Language: ja-JP X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.198.219.34] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2374 Lines: 69 Hi Arnaldo, > From: Arnaldo Carvalho de Melo [mailto:acme@kernel.org] > > Hi Masami, > > Have you noticed that sys_select or sys_poll stops after the > first few lines? Please let me know if you need more info than is below. OK, I'll see what is going. > > [root@zoo ~]# perf probe -L sys_select > > 0 SYSCALL_DEFINE5(select, int, n, fd_set __user *, inp, fd_set __user *, outp, > fd_set __user *, exp, struct timeval __user *, tvp) > { > struct timespec end_time, *to = NULL; > > [root@zoo ~]# perf probe -L sys_poll > > 0 SYSCALL_DEFINE3(poll, struct pollfd __user *, ufds, unsigned int, nfds, > int, timeout_msecs) > { > struct timespec end_time, *to = NULL; > > [root@zoo ~]# > > I haven't investigated it too much, if there is some trouble that makes > 'perf probe -L' to stop like that maybe we should warn the user somehow? It seems a bug of -L, since it works correctly with fs/select.c:957. $ ./perf probe -L fs/select.c:957 957 SYSCALL_DEFINE3(poll, struct pollfd __user *, ufds, unsigned int, nfds$ int, timeout_msecs) { 960 struct timespec end_time, *to = NULL; int ret; 963 if (timeout_msecs >= 0) { 964 to = &end_time; 965 poll_select_set_timeout(to, timeout_msecs / MSEC_PER_SE$ 966 NSEC_PER_MSEC * (timeout_msecs % MSEC_PER_SEC))$ } 969 ret = do_sys_poll(ufds, nfds, to); 971 if (ret == -EINTR) { struct restart_block *restart_block; So, something goes wrong when processing syscall functions. Thanks! -- Masami HIRAMATSU Linux Technology Research Center, System Productivity Research Dept. Center for Technology Innovation - Systems Engineering Hitachi, Ltd., Research & Development Group E-mail: masami.hiramatsu.pt@hitachi.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/