Initial commit for TF-A CI scripts

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
diff --git a/script/id_tf_processes.sh b/script/id_tf_processes.sh
new file mode 100755
index 0000000..9c2b4f6
--- /dev/null
+++ b/script/id_tf_processes.sh
@@ -0,0 +1,33 @@
+#!/bin/bash
+#
+# Copyright (c) 2019, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+lookup() {
+	local string
+
+	string="$(grep "\\<${1:?}=" < "$proc_file")"
+	if [ "$string" ]; then
+		echo "$string"
+		eval "$string"
+	fi
+}
+
+for p in $(pgrep FVP); do
+	proc_file="$WORKSPACE/proc_file"
+	tr '\000' '\n' < "/proc/$p/environ" > "$proc_file"
+
+	echo "PID: $p"
+	lookup "TRUSTED_FIRMWARE_CI"
+	lookup "BUILD_NUMBER"
+	lookup "JOB_NAME"
+
+	if [ "$KILL_PROCESS" = "true" -a "$TRUSTED_FIRMWARE_CI" = "1" ]; then
+		kill -SIGTERM "$p"
+		echo "Killed $p"
+	fi
+
+	echo
+done