summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorspashabk-in <shakeebbk@in.ibm.com>2018-02-15 01:25:38 -0600
committerSachin Gupta <sgupta2m@in.ibm.com>2018-02-15 07:43:23 -0500
commitffa97b5fd9ffcb9cb7e53b3bced6de796a9df8de (patch)
treec614562c2daf6180f1e25a07697f7cea84eaf6ce /src/tools
parent0aae9a8e68abb55110bee2d7bd2fbe49a4a11e70 (diff)
downloadtalos-sbe-ffa97b5fd9ffcb9cb7e53b3bced6de796a9df8de.tar.gz
talos-sbe-ffa97b5fd9ffcb9cb7e53b3bced6de796a9df8de.zip
Fix missing sbe traces in errorlog
There is a size limitation for build field in sf_magic_cookie_t in fsp-trace. Max size is 128 characters. But with SBE release now moving to jenkins, the path of SBE directory is long(172 chars). This fails the sbeStringFIle parsing. Change-Id: I75cc3b4028bef592f45980773be03ea2e40e7b52 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54098 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/tools')
-rwxr-xr-xsrc/tools/trace/ppetracepp.C2
-rwxr-xr-xsrc/tools/trace/tracehash.pl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/trace/ppetracepp.C b/src/tools/trace/ppetracepp.C
index f9c088d4..005d7b37 100755
--- a/src/tools/trace/ppetracepp.C
+++ b/src/tools/trace/ppetracepp.C
@@ -921,7 +921,7 @@ if (!hashtab.empty())
time_t tt = time(NULL);
sprintf(buf, "%s", asctime(localtime(&tt)));
buf[strlen(buf)-1] = '\0'; // chop off extra newline
- fprintf(TRC, "#FSP_TRACE_v2|||%s|||BUILD:%s", buf, pwd.c_str());
+ fprintf(TRC, "#FSP_TRACE_v2|||%s|||BUILD:%.120s", buf, pwd.c_str());
string srch_str = "||";
srch_str += source;
diff --git a/src/tools/trace/tracehash.pl b/src/tools/trace/tracehash.pl
index fb4c6a3a..2b0480af 100755
--- a/src/tools/trace/tracehash.pl
+++ b/src/tools/trace/tracehash.pl
@@ -186,7 +186,7 @@ determine_args();
if (defined $dir)
{
- $build = $build . $dir; # default to put at top of string file
+ $build = $build . substr($dir, 0, 120); # default to put at top of string file
if($collect)
{
collect_files($dir);
OpenPOWER on IntegriCloud