Commit 2cef3d06 authored by Charles Jacobsen's avatar Charles Jacobsen
Browse files

lcd: empty_msg test builds and runs.

Seeing 424-428 cycle averages for RTTs.
parent f657a6f5
......@@ -2,4 +2,4 @@
# D=install dir (something/lib)
install-tests:
cp $(LIBFIPC_TESTS_KBUILD)/rpc/libfipc_test_rpc.ko $(D)
cp $(LIBFIPC_TESTS_KBUILD)/rpc/libfipc_test_empty_msg.ko $(D)
cp $(LIBFIPC_TESTS_KBUILD)/empty_msg/libfipc_test_empty_msg.ko $(D)
......@@ -15,8 +15,8 @@ This example was ran on an Intel Xeon E5530 2.4 GHz machines. Make sure
you turn off TurboBoost in the BIOS, and make sure you turn up the
processor frequencies to 2.4 GHz.
We saw averages of 430 cycles for the null invocation round trip times
between cpu1 and cpu3.
We saw averages of 424-428 cycles for the round trip times between cpu1 and
cpu3.
To run this example, after building the .ko, just insmod it. The round trip
times will be printed to the kernel logs.
......@@ -48,7 +48,6 @@ int callee(void *_callee_channel_header)
{
struct fipc_ring_channel *chan = _callee_channel_header;
unsigned long transaction_id;
unsigned long start, end;
int ret = 0;
/*
* Turn off interrupts so that we truly take over the core
......@@ -57,14 +56,11 @@ int callee(void *_callee_channel_header)
/*
* Do recv/send
*/
pr_err("Roundtrip Times (in cycles):\n");
for (transaction_id = 0;
transaction_id < TRANSACTIONS;
transaction_id++) {
start = test_fipc_start_stopwatch();
ret = do_one_msg(chan);
end = test_fipc_stop_stopwatch();
if (ret) {
pr_err("error in send/recv, ret = %d, exiting...\n",
......@@ -72,10 +68,7 @@ int callee(void *_callee_channel_header)
goto out;
}
pr_err("\t%lu\n", end - start);
}
pr_err("Complete\n");
/*
* Re-enable interrupts
*/
......
......@@ -10,6 +10,8 @@
#include <libfipc.h>
#define TRANSACTIONS 60
/* thread main functions */
int callee(void *_callee_channel_header);
int caller(void *_caller_channel_header);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment