Skip to content

Commit

Permalink
XDP: Initial Support for Trace and Profile for VE2 device (#8672)
Browse files Browse the repository at this point in the history
* Inital Telluride changes for trace

Signed-off-by: parthash0804 <ParthAshwin.Jain@amd.com>

* Renaming VE2

Signed-off-by: parthash0804 <ParthAshwin.Jain@amd.com>

* Bug fixes

Signed-off-by: parthash0804 <ParthAshwin.Jain@amd.com>

* Bug fixes

Signed-off-by: parthash0804 <ParthAshwin.Jain@amd.com>

* Bug fixes

Signed-off-by: parthash0804 <ParthAshwin.Jain@amd.com>

* Enable profile

Signed-off-by: parthash0804 <ParthAshwin.Jain@amd.com>

* Remove prints and enable profile from cmake

Signed-off-by: parthash0804 <ParthAshwin.Jain@amd.com>

* Remove sleep

Signed-off-by: parthash0804 <ParthAshwin.Jain@amd.com>

* Changes as suggested in PR comments

Signed-off-by: parthash0804 <ParthAshwin.Jain@amd.com>

---------

Signed-off-by: parthash0804 <ParthAshwin.Jain@amd.com>
  • Loading branch information
parthash0804 authored Dec 24, 2024
1 parent 7f72660 commit cf60dad
Show file tree
Hide file tree
Showing 12 changed files with 3,334 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
* Copyright (C) 2020 Xilinx, Inc
* Copyright (C) 2022-2024 Advanced Micro Devices, Inc. - All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located 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.
*/

#ifndef XDP_PROFILE_AIE_TRACE_VE2_LOGGER_H
#define XDP_PROFILE_AIE_TRACE_VE2_LOGGER_H

#include <cstdint>
#include<iostream>

namespace xdp {

// Interface class
class AIETraceLogger
{
public:
AIETraceLogger() {}
virtual ~AIETraceLogger() {}

virtual void addAIETraceData(uint64_t strmIndex, void* buffer, uint64_t bufferSz, bool copy) = 0;
};

}
#endif
Loading

0 comments on commit cf60dad

Please sign in to comment.