summaryrefslogtreecommitdiffstats
path: root/tools/ppetracepp
diff options
context:
space:
mode:
authorSachin Gupta <sgupta2m@in.ibm.com>2016-07-12 04:23:47 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2016-07-18 07:42:53 -0400
commitae389ca4d9f1c23ae986f6e4d2b24d734f6e83b3 (patch)
tree0f77bea70ac05a3bd519cf465fe0b63dbdac4822 /tools/ppetracepp
parenteabf18adbeefdf3dd808eb468d8453d687547ecf (diff)
downloadtalos-sbe-ae389ca4d9f1c23ae986f6e4d2b24d734f6e83b3.tar.gz
talos-sbe-ae389ca4d9f1c23ae986f6e4d2b24d734f6e83b3.zip
Partial cleanup for tools directory
These changes are done 1. Removal of PowerPCtoPPE folder 2. Remving binaries from tools/ppetracepp. Generate these binaries at runtime. Change-Id: If884ba1cc5e2747265ce3618e82d1fb439babcd4 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26889 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'tools/ppetracepp')
-rw-r--r--tools/ppetracepp/Makefile32
-rwxr-xr-xtools/ppetracepp/ppe2fspbin19306 -> 0 bytes
-rwxr-xr-xtools/ppetracepp/ppetraceppbin321115 -> 0 bytes
-rwxr-xr-xtools/ppetracepp/ppetracepp.C26
4 files changed, 54 insertions, 4 deletions
diff --git a/tools/ppetracepp/Makefile b/tools/ppetracepp/Makefile
index 41ad1cd2..abb4ce92 100644
--- a/tools/ppetracepp/Makefile
+++ b/tools/ppetracepp/Makefile
@@ -1,12 +1,38 @@
+# IBM_PROLOG_BEGIN_TAG
+# This is an automatically generated prolog.
+#
+# $Source: tools/ppetracepp/Makefile $
+#
+# OpenPOWER sbe Project
+#
+# Contributors Listed Below - COPYRIGHT 2015,2016
+# [+] International Business Machines Corp.
+#
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied. See the License for the specific language governing
+# permissions and limitations under the License.
+#
+# IBM_PROLOG_END_TAG
+include img_defs.mk
+
all: ppetracepp ppe2fsp
ppetracepp: ppetracepp.C
- g++ -m32 -O3 -w -g -I./ ppetracepp.C -o ppetracepp
+ g++ -m32 -O3 -w -g -I./ ppetracepp.C -o $(PPETRACEPP_BIN_DIR)/ppetracepp
# g++ -O3 -w -x c++ -fPIC -g -I./ ppetracepp.C -o ppetracepp
ppe2fsp: ppe2fsp.c ppe2fsp_cmd.c
- gcc -m32 -w -g -I./ -I../../pk/trace ppe2fsp.c ppe2fsp_cmd.c -o ppe2fsp
+ gcc -m32 -w -g -I./ -I../../pk/trace ppe2fsp.c ppe2fsp_cmd.c -o $(PPETRACEPP_BIN_DIR)/ppe2fsp
clean:
- rm ppetracepp ppe2fsp
+ rm $(PPETRACEPP_BIN_DIR)/ppetracepp $(PPETRACEPP_BIN_DIR)/ppe2fsp
diff --git a/tools/ppetracepp/ppe2fsp b/tools/ppetracepp/ppe2fsp
deleted file mode 100755
index ea96923f..00000000
--- a/tools/ppetracepp/ppe2fsp
+++ /dev/null
Binary files differ
diff --git a/tools/ppetracepp/ppetracepp b/tools/ppetracepp/ppetracepp
deleted file mode 100755
index 61b5f04b..00000000
--- a/tools/ppetracepp/ppetracepp
+++ /dev/null
Binary files differ
diff --git a/tools/ppetracepp/ppetracepp.C b/tools/ppetracepp/ppetracepp.C
index 5c4b069f..5cd7a2ff 100755
--- a/tools/ppetracepp/ppetracepp.C
+++ b/tools/ppetracepp/ppetracepp.C
@@ -1,3 +1,27 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: tools/ppetracepp/ppetracepp.C $ */
+/* */
+/* OpenPOWER sbe Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2015,2016 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
/*
# *** ppetracepp - a fsp/common Linux trace pre processor
@@ -48,7 +72,7 @@
#include <fcntl.h>
#include <map>
#include <vector>
-
+#include <unistd.h>
#include <sys/types.h>
typedef u_int32_t u32 ;
typedef u_int8_t u8 ;
OpenPOWER on IntegriCloud