Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .clang-format-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./src/amd_detail/usdt.h
3 changes: 2 additions & 1 deletion src/amd_detail/backend/fallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "hip.h"
#include "io.h"
#include "sys.h"
#include "trace.h"

#include <algorithm>
#include <cerrno>
Expand Down Expand Up @@ -118,6 +119,6 @@ Fallback::io(IoType io_type, shared_ptr<IFile> file, shared_ptr<IBuffer> buffer,
break;
}
} while (static_cast<size_t>(total_io_bytes) < size);

USDT_HIPFILE(posix_io, static_cast<unsigned long>(io_type), total_io_bytes);
return total_io_bytes;
}
3 changes: 2 additions & 1 deletion src/amd_detail/backend/fastpath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "file.h"
#include "hip.h"
#include "hipfile.h"
#include "trace.h"
#include "io.h"

#include <cstdint>
Expand Down Expand Up @@ -187,6 +188,6 @@ Fastpath::io(IoType type, shared_ptr<IFile> file, shared_ptr<IBuffer> buffer, si
default:
throw std::runtime_error("Invalid IoType");
}

USDT_HIPFILE(ais_io, static_cast<unsigned long>(type), nbytes);
return static_cast<ssize_t>(nbytes);
}
10 changes: 10 additions & 0 deletions src/amd_detail/trace.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* Copyright (c) Advanced Micro Devices, Inc. All rights reserved.
*
* SPDX-License-Identifier: MIT
*/

#pragma once

#include "usdt.h"

#define USDT_HIPFILE(...) USDT(hipfile, __VA_ARGS__)
Loading