summaryrefslogtreecommitdiffstats
path: root/tools/ppetracepp
diff options
context:
space:
mode:
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