From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#20843: 24.5; Profiler error: "Invalid sampling interval" Date: Sat, 20 Jun 2015 17:47:21 -0400 Message-ID: <5585DF69.7090008@cornell.edu> References: <83k2v1l7g4.fsf@gnu.org> <5585B8C4.1050204@cornell.edu> <83r3p6i4b1.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1434836901 16758 80.91.229.3 (20 Jun 2015 21:48:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Jun 2015 21:48:21 +0000 (UTC) Cc: sva-news@mygooglest.com, 20843@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 20 23:48:10 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z6QcU-0000HP-Fo for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Jun 2015 23:48:10 +0200 Original-Received: from localhost ([::1]:34742 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6QcT-0006x4-NE for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Jun 2015 17:48:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6QcQ-0006ww-An for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2015 17:48:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6QcN-0005ip-3M for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2015 17:48:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6QcM-0005iV-Vw for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2015 17:48:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z6QcM-0007Hk-Jb for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2015 17:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Jun 2015 21:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20843 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 20843-submit@debbugs.gnu.org id=B20843.143483683827950 (code B ref 20843); Sat, 20 Jun 2015 21:48:02 +0000 Original-Received: (at 20843) by debbugs.gnu.org; 20 Jun 2015 21:47:18 +0000 Original-Received: from localhost ([127.0.0.1]:52981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6Qbc-0007Gh-QN for submit@debbugs.gnu.org; Sat, 20 Jun 2015 17:47:17 -0400 Original-Received: from limerock04.mail.cornell.edu ([128.84.13.244]:43113) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6QbZ-0007GN-SW for 20843@debbugs.gnu.org; Sat, 20 Jun 2015 17:47:14 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock04.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id t5KLl7s8031247; Sat, 20 Jun 2015 17:47:08 -0400 Original-Received: from [192.168.1.3] (cpe-67-249-176-138.twcny.res.rr.com [67.249.176.138]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id t5KLl5L1009169 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 20 Jun 2015 17:47:06 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <83r3p6i4b1.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104163 Archived-At: On 6/20/2015 3:10 PM, Eli Zaretskii wrote: >> Date: Sat, 20 Jun 2015 15:02:28 -0400 >> From: Ken Brown >> CC: 20843@debbugs.gnu.org >> >> On 6/18/2015 4:57 AM, Eli Zaretskii wrote: >>>> From: Sebastien Vauban >>>> Date: Thu, 18 Jun 2015 10:37:02 +0200 >>>> >>>> When trying to start the profiler under Cygwin Emacs 24.5, I get this: >>>> >>>> --8<---------------cut here---------------start------------->8--- >>>> Debugger entered--Lisp error: (error "Invalid sampling interval") >>>> profiler-cpu-start(1000000) >>>> profiler-start(cpu) >>>> call-interactively(profiler-start record nil) >>> >>> Can you step with GDB into setup_cpu_timer, and see what goes wrong >>> there? I suspect this portions: >> [...] >> >> No, the problem is that Cygwin's setitimer supports only ITIMER_REAL, so >> the call to setitimer(ITIMER_PROF,...) in profiler.c:315 fails. > > Then I guess the configure-time test for setitimer should also test > for ITIMER_PROF. I'd be glad to give this a try, but I don't have any experience writing autoconf macros. Is there a standard macro to test whether a function accepts a particular argument? If not, can you (or anyone) point me to an example that I can imitate? > Also, the diagnostics should be improved, as the > wording is misleading in that case. As it stands, profiler-cpu-start reports "Invalid sampling interval" whenever setup_cpu_timer fails to start the timer, regardless of the reason. I'll try to improve this. Ken