Skip to content

Commit

Permalink
mctp-bench: Add a utility tool to send/receive messages and display t…
Browse files Browse the repository at this point in the history
…hroughput

A utility tool that implements a sender and receiver to benchmark mctp
throughput. This is split into a sender command and a receive command in the
same executable.

The receive command waits for incoming messages, notifies the user of first
message received and then prints out measured throughput periodically.

Example usage:
	mctp-bench recv

The sender command sends messages continously, the size of which can be
set by the user, defaulting to 8 bytes.

Example usage:
	mctp-bench send len 1000 eid 8

Signed-off-by: Timon Liu <[email protected]>
  • Loading branch information
Timon-L committed Dec 19, 2024
1 parent 5c3b15d commit 3114937
Show file tree
Hide file tree
Showing 2 changed files with 417 additions and 0 deletions.
4 changes: 4 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ executable('mctp-echo',
sources: ['src/mctp-echo.c'] + util_sources,
)

executable('mctp-bench',
sources: ['src/mctp-bench.c'] + util_sources,
)

if libsystemd.found()
executable('mctpd',
sources: [
Expand Down
Loading

0 comments on commit 3114937

Please sign in to comment.