Skip to content

Commit 936af1b

Browse files
Added header with options to AubStream interface
Change-Id: I9be43f1b41008dde040036a0cfce94431a35c3ac
1 parent 64ff9d3 commit 936af1b

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

third_party/aub_stream/headers/hardware_context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace AubDump {
1414
struct HardwareContext {
1515
virtual void initialize() = 0;
1616
virtual void pollForCompletion() = 0;
17-
virtual void submit(uint64_t gfxAddress, const void *batchBuffer, size_t size, uint32_t memoryBank, size_t pageSize = 65536) = 0;
17+
virtual void submit(uint64_t gfxAddress, const void *batchBuffer, size_t size, uint32_t memoryBanks, size_t pageSize = 65536) = 0;
1818
virtual void writeMemory(uint64_t gfxAddress, const void *memory, size_t size, uint32_t memoryBanks, int hint, size_t pageSize = 65536) = 0;
1919
virtual void freeMemory(uint64_t gfxAddress, size_t size) = 0;
2020
virtual void expectMemory(uint64_t gfxAddress, const void *memory, size_t size, uint32_t compareOperation) = 0;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright (C) 2019 Intel Corporation
3+
*
4+
* SPDX-License-Identifier: MIT
5+
*
6+
*/
7+
8+
#pragma once
9+
#include <string>
10+
#include <cstdint>
11+
#include <ostream>
12+
#include <vector>
13+
14+
namespace AubDump {
15+
16+
extern std::ostream &log;
17+
extern std::string tbxServerIp;
18+
extern uint16_t tbxServerPort;
19+
20+
using MMIOPair = std::pair<uint32_t, uint32_t>;
21+
using MMIOList = std::vector<MMIOPair>;
22+
extern MMIOList injectMMIOList;
23+
24+
} // namespace AubDump

0 commit comments

Comments
 (0)