xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: ian.jackson@eu.citrix.com
Cc: Ian Campbell <ian.campbell@citrix.com>, xen-devel@lists.xen.org
Subject: [PATCH OSSTEST v2 3/3] Stash debug symbols for build results
Date: Thu, 31 Oct 2013 16:53:15 +0000	[thread overview]
Message-ID: <1383238395-14161-3-git-send-email-ian.campbell@citrix.com> (raw)
In-Reply-To: <1383238365.5436.2.camel@dagon.hellion.org.uk>

Specifically xen-syms (<1M compressed) and the vmlinux (~13M compressed) files.
---
 Osstest/TestSupport.pm |   18 +++++++++++++++++-
 ts-kernel-build        |    2 ++
 ts-xen-build           |    2 ++
 3 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index dba5cef..1ac4cf7 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -67,7 +67,8 @@ BEGIN {
                       propname_massage
          
                       get_stashed open_unique_stashfile compress_stashed
-                      dir_identify_vcs build_clone built_stash 
+                      dir_identify_vcs build_clone built_stash built_stash_file
+                      built_compress_stashed
                       hg_dir_revision git_dir_revision vcs_dir_revision
                       store_revision store_vcs_revision
 
@@ -1050,6 +1051,21 @@ END
     store_runvar("path_$item", $stashleaf);
 }
 
+sub built_stash_file ($$$$) {
+    my ($ho, $builddir, $item, $fname) = @_;
+    my $build= "build";
+    my $stashleaf= "$build/$item";
+    ensuredir("$stash/$build");
+    target_getfile($ho, 300,
+                   "$builddir/$fname",
+                   "$stash/$stashleaf");
+}
+
+sub built_compress_stashed($) {
+    my ($path) = @_;
+    compress_stashed("build/$path");
+}
+
 sub vcs_dir_revision ($$$) {
     my ($ho,$builddir,$vcs) = @_;
     no strict qw(refs);
diff --git a/ts-kernel-build b/ts-kernel-build
index 824dc9e..babd261 100755
--- a/ts-kernel-build
+++ b/ts-kernel-build
@@ -322,3 +322,5 @@ if ($r{tree_linuxfirmware}) {
     fwinstall();
 }
 built_stash($ho, $builddir, 'dist', 'kerndist');
+built_stash_file($ho, $builddir, 'vmlinux', 'linux/vmlinux');
+built_compress_stashed('vmlinux');
diff --git a/ts-xen-build b/ts-xen-build
index 8a905f5..5f544df 100755
--- a/ts-xen-build
+++ b/ts-xen-build
@@ -198,6 +198,8 @@ sub stash () {
                     "xen-unstable/dist/${part}install",
                     "${part}dist");
     }
+    built_stash_file($ho, $builddir, "xen-syms", "xen-unstable/xen/xen-syms");
+    built_compress_stashed("xen-syms");
 }
 
 sub checkversions () {
-- 
1.7.10.4

  parent reply	other threads:[~2013-10-31 16:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-31 16:52 [PATCH OSSTEST 0/3 v2] Stash debug symbols for build results Ian Campbell
2013-10-31 16:53 ` [PATCH OSSTEST v2 1/3] ts-kernel-build: Enable CONFIG_DEBUG_INFO_REDUCED Ian Campbell
2013-10-31 16:53 ` [PATCH OSSTEST v2 2/3] TestSupport: Add interface to compress stash files Ian Campbell
2013-10-31 16:53 ` Ian Campbell [this message]
2013-10-31 16:56 ` [PATCH OSSTEST 0/3 v2] Stash debug symbols for build results Ian Jackson
2013-10-31 16:58   ` Ian Campbell
2013-10-31 17:53   ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1383238395-14161-3-git-send-email-ian.campbell@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).