From patchwork Wed Dec 19 04:29:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Doan X-Patchwork-Id: 13650 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 630D223E04 for ; Wed, 19 Dec 2012 04:29:16 +0000 (UTC) Received: from mail-ia0-f169.google.com (mail-ia0-f169.google.com [209.85.210.169]) by fiordland.canonical.com (Postfix) with ESMTP id E0E45A189BB for ; Wed, 19 Dec 2012 04:29:15 +0000 (UTC) Received: by mail-ia0-f169.google.com with SMTP id r4so1329034iaj.14 for ; Tue, 18 Dec 2012 20:29:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:content-type:mime-version:x-launchpad-project :x-launchpad-branch:x-launchpad-message-rationale :x-launchpad-branch-revision-number:x-launchpad-notification-type:to :from:subject:message-id:date:reply-to:sender:errors-to:precedence :x-generated-by:x-launchpad-hash:x-gm-message-state; bh=HZ+k0QCzidZ/6XDaNXGRYt/ZRLnlAEwAeLQqT49vAxI=; b=Hernvkx/E4H071dplBrjxsEAJA25ZQl/Coo4rssVx7ryB6ApgTtkaJjNFMJ3Jd+SA1 iP5v+TxX6rjeM69xkWz5oTEAjcTXj3tEYjmuQR1Bi2WwLZWmfJuQx7lL3i9pSze5Cru9 Yse/X3Q8wbRWTCgKhbiqzfsgi/blnfcSNBEGiILooEAtHMT6UiTsuK2Sg9tq8EyTFIEH WIOjdh5l5lPkBzNoxCW05f9jdPEOBK8S0f3QDdkiJtqZalCRODdsHE5QVpIYEg7icHZp pUFy8tjh2gR0Fut8LSck8omgIDyTdD7eaO4+ASHnYQv78kbrERSt8cm7W2VWbwsMxDeO h6Pw== X-Received: by 10.50.190.163 with SMTP id gr3mr787227igc.106.1355891355271; Tue, 18 Dec 2012 20:29:15 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.115 with SMTP id m19csp209926igt; Tue, 18 Dec 2012 20:29:14 -0800 (PST) X-Received: by 10.180.95.135 with SMTP id dk7mr1470651wib.29.1355891353837; Tue, 18 Dec 2012 20:29:13 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id bm5si5849326wjb.74.2012.12.18.20.29.13 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Dec 2012 20:29:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TlBHN-0005fq-2Y for ; Wed, 19 Dec 2012 04:29:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 01C51E0180 for ; Wed, 19 Dec 2012 04:29:13 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dispatcher X-Launchpad-Branch: ~linaro-validation/lava-dispatcher/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 507 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 507: add support for ARM Energy Probe Message-Id: <20121219042913.25197.79090.launchpad@ackee.canonical.com> Date: Wed, 19 Dec 2012 04:29:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="16378"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 10feca6393ef62262a1f49b5fd3b35db778909de X-Gm-Message-State: ALoCoQnWYT0FTXtIUeQmKOM/ifFvfhUj7/e880zoPXYqyTXM1wLxOyt0QRDakerZgQYPwrzbXEXD Merge authors: Andy Doan (doanac) Related merge proposals: https://code.launchpad.net/~doanac/lava-dispatcher/aep-support/+merge/140111 proposed by: Andy Doan (doanac) ------------------------------------------------------------ revno: 507 [merge] committer: Andy Doan branch nick: lava-dispatcher timestamp: Tue 2012-12-18 22:27:40 -0600 message: add support for ARM Energy Probe merge commit fixed a conflict with antonio's latest rmtree fix added: doc/arm_energy_probe.rst lava_dispatcher/signals/armprobe.py modified: doc/index.rst lava_dispatcher/config.py lava_dispatcher/signals/__init__.py lava_dispatcher/signals/shellhooks.py setup.py --- lp:lava-dispatcher https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk You are subscribed to branch lp:lava-dispatcher. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription === added file 'doc/arm_energy_probe.rst' --- doc/arm_energy_probe.rst 1970-01-01 00:00:00 +0000 +++ doc/arm_energy_probe.rst 2012-12-19 04:23:01 +0000 @@ -0,0 +1,102 @@ +Using the ARM Energy Probe +========================== + +The dispatcher includes a `signal handler`_ that allows tests in LAVA +to include power measurement data per test case. Since the functionality +is built into the dispatcher there are really two main things required to +enable this. + + * deployment of a device with the AEP + * creating jobs to use it + +.. _`signal handler`: external_measurement.html + +Deployment +---------- + +Hooking up probes to a specific board are beyond the scope of this document. +However, once a board has a probe hooked up and plugged into the host PC, +the dispatcher can be configured as follows:: + + # These options should be added to the device.conf ie: + # /srv/lava/instances//etc/lava-dispatcher/devices/panda01.conf + # if the defaults are what's needed, then this can be skipped + + # The location of the binary (default=/usr/local/bin/arm-probe) + arm_probe_binary = /home/doanac/linaro/arm-probe/arm-probe/arm-probe + + # The location of the config file (default=/usr/local/etc/arm-probe-config) + arm_probe_config = /home/doanac/linaro/arm-probe/config + + # The channels configured for this probe (can be an array default=VDD_VCORE1) + arm_probe_channels = VDD_VCORE1 + +Since there may be a mix of device that have AEPs and different configs for +the ones that do, its also recommended to use the LAVA admin interface for +the lava-scheduler to define some tagging scheme that can be used to identify +devices with certain AEP configs. This allows job files to then specify a +tag if it needs AEP or some special AEP config. + +Creating a Job File +------------------- + +The job is pretty standard and can be read about our `jobfile`_ documentation. +The specific thing needed for an AEP job would be the lava-test-shell action +which would look something like:: + + { + "command": "lava_test_shell", + "parameters": { + "testdef_repos": [ + {"bzr-repo": "lp:~doanac/+junk/arm-probe-demo", + "testdef": "arm-probe.yaml" + } + ], + "timeout": 1800 + } + } + +.. _`jobfile`: jobfile.html + +Specifying the Test Definition +------------------------------ + +The test definintion should live in a bzr/git repository. The `above example's`_ +test definintion would look like:: + + metadata: + format: Lava-Test Test Definition 1.0 + name: arm-probe-demo + + handler: + handler-name: arm-probe + params: + # The post_process_script is run for each test case. Its called like: + #