summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/perv/p9_sbe_tracearray.C
diff options
context:
space:
mode:
authorShakeeb <shakeebbk@in.ibm.com>2016-10-24 06:11:34 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2017-02-03 01:59:29 -0500
commitedb753be279189a97014b2d685370b777e340c7c (patch)
tree0fd6958dc7c9690745720405ffe6c964948e6b53 /src/import/chips/p9/procedures/hwp/perv/p9_sbe_tracearray.C
parentb8acb760d5f059e5d15008e8113d3f951dfe0e9b (diff)
downloadtalos-sbe-edb753be279189a97014b2d685370b777e340c7c.tar.gz
talos-sbe-edb753be279189a97014b2d685370b777e340c7c.zip
L1 - trace array on SBE
Also adapt existing p9_proc_tracearray to share trace array defs with the new procedure. RTC:128332 Change-Id: I319ae7f33ad56eccb5821db74e52aa2d79af415d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31703 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Joachim Fenkes <fenkes@de.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: PARVATHI RACHAKONDA <prachako@in.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35790 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/perv/p9_sbe_tracearray.C')
-rw-r--r--src/import/chips/p9/procedures/hwp/perv/p9_sbe_tracearray.C67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/perv/p9_sbe_tracearray.C b/src/import/chips/p9/procedures/hwp/perv/p9_sbe_tracearray.C
new file mode 100644
index 00000000..68ecf0bc
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/perv/p9_sbe_tracearray.C
@@ -0,0 +1,67 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/import/chips/p9/procedures/hwp/perv/p9_sbe_tracearray.C $ */
+/* */
+/* OpenPOWER sbe Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2016,2017 */
+/* */
+/* */
+/* 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 */
+/// @file p9_sbe_tracearray.C
+///
+/// @brief Collect contents of specified trace array via SCOM.
+///
+/// Collects contents of specified trace array via SCOM. Optionally
+/// manages chiplet domain trace engine state (start/stop/reset) around
+/// trace array data collection. Trace array data can be collected only
+/// when its controlling chiplet trace engine is stopped.
+///
+/// Request number of Trace array entries will be packed into data buffer from
+/// oldest->youngest entry.
+///
+/// Calling code is expected to pass the proper target type based on the
+/// desired trace resource; a convenience function is provided to find out
+/// the expected target type for a given trace resource.
+//------------------------------------------------------------------------------
+// *HWP HW Owner : Joachim Fenkes <fenkes@de.ibm.com>
+// *HWP HW Backup Owner : Joe McGill <jmcgill@us.ibm.com>
+// *HWP FW Owner : Shakeeb Pasha<shakeebbk@in.ibm.com>
+// *HWP Team : Perv
+// *HWP Level : 1
+// *HWP Consumed by : SBE
+//------------------------------------------------------------------------------
+//-----------------------------------------------------------------------------------
+// Includes
+//-----------------------------------------------------------------------------------
+#include <p9_sbe_tracearray.H>
+
+//-----------------------------------------------------------------------------------
+// Function definitions
+//-----------------------------------------------------------------------------------
+fapi2::ReturnCode p9_sbe_tracearray(
+ const fapi2::Target<P9_SBE_TRACEARRAY_TARGET_TYPES>& i_target,
+ const proc_gettracearray_args& i_args,
+ uint64_t* o_ta_data,
+ const uint32_t i_num_rows
+)
+{
+ FAPI_INF("Start");
+ FAPI_INF("End");
+ return fapi2::current_err;
+}
+
+
OpenPOWER on IntegriCloud