Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932198AbVJNCIX (ORCPT ); Thu, 13 Oct 2005 22:08:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932553AbVJNCIX (ORCPT ); Thu, 13 Oct 2005 22:08:23 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:31687 "EHLO e35.co.us.ibm.com") by vger.kernel.org with ESMTP id S932198AbVJNCIX (ORCPT ); Thu, 13 Oct 2005 22:08:23 -0400 Subject: [RFC] Generic Timeofday Subsystem Simulator (v1) From: john stultz To: lkml Cc: Roman Zippel , Ulrich Windl , George Anzinger , Thomas Gleixner , Frank Sorenson , Nishanth Aravamudan , Darren Hart In-Reply-To: <1129255182.27168.14.camel@cog.beaverton.ibm.com> References: <1129255182.27168.14.camel@cog.beaverton.ibm.com> Content-Type: multipart/mixed; boundary="=-Xkbz8fo+Wex9HBFoByPV" Date: Thu, 13 Oct 2005 19:08:18 -0700 Message-Id: <1129255699.27168.24.camel@cog.beaverton.ibm.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 8313 Lines: 137 --=-Xkbz8fo+Wex9HBFoByPV Content-Type: text/plain Content-Transfer-Encoding: 7bit All, At Roman's prodding, and inspired by Dave Mills' simulator, I've scratched out a pretty simple userspace simulator for my timeofday and NTP changes. The project is attached. It is pretty simple right now and if you have any suggestions for changes, please let me know. To use it: 1. Download my timeofday patches (or just the cumulative one) and apply them to a current git tree. 2. Untar the simulator. 3. Run ./generate.sh 4. Run make 5. Run ./todsim Pretty easy. It will output a whole lot of data providing: Its not terribly interesting at the moment, but hopefully folks can play with it and make suggestions for improvements to the simulator, timeofday code or the ntp changes. thanks -john --=-Xkbz8fo+Wex9HBFoByPV Content-Disposition: attachment; filename=simulator.tar.bz2 Content-Type: application/x-bzip-compressed-tar; name=simulator.tar.bz2 Content-Trans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Sgc ZSm/ctxITtiBoyMBYvcxDIUwkKCBpFkgZdgzJnDZz0C0RcmruyyY9FckJWFhakjgQSQjhuur8xqW l1Sy1JDAkl8t/jEI8yWi/VeZt2iRg9mbi9ahyhUJpBRJHuHypL5xdneCS9OkZFokP48PqdT7DA1R vM9nDbIHsDMepGhwCgKiWxSEprxJX3RD/9Ejd5C/OJDDDvxghhehLry6xBGiT5ama26lNyZTG3Hi wce962lcKYvaIdoLt3CyLTfAExlRShrOoTk3ZJwVbhnrxkE2AUCYJflBTkW1IBBI0OG+RUr5DOrR wPGSJyr+JtFQDc0leLvCL0EAxIxDW1HHSISao4YmyfZRf1NYFo/iBUrS2H+GAaAqf8XckU4UJBwW OpMA --=-Xkbz8fo+Wex9HBFoByPV-- - 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/