Motr
M0
|
#include <linux/version.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
#include "net/lnet/ut/lnet_drv_ut.h"
#include "net/lnet/linux_kernel/klnet_core.h"
Go to the source code of this file.
Macros | |
#define | UT_BUFVEC_ALLOC(v, n) |
#define | UT_BUFVEC_FREE(v) |
#define | EXP_SEG_COUNT(ptr, segsize, expcount) |
#define | TEST_HDR_DATA_ENCODE(_p, _t) |
#define | KEB(b) |
#define | USER_HELPER_WAIT(id) |
Enumerations | |
enum | { UT_PROC_WRITE_SIZE = 8, UT_SYNC_DELAY_SEC = 5 } |
enum | { UT_KMSG_OPS = 4 } |
Functions | |
static ssize_t | read_lnet_ut (struct file *file, char __user *buffer, size_t len, loff_t *offset) |
static ssize_t | write_lnet_ut (struct file *file, const char __user *buffer, size_t count, loff_t *offset) |
static int | open_lnet_ut (struct inode *inode, struct file *file) |
static int | close_lnet_ut (struct inode *inode, struct file *file) |
static int | ktest_lnet_init (void) |
static void | ktest_lnet_fini (void) |
static bool | ut_bufvec_alloc (struct m0_bufvec *bv, size_t n) |
static void | ktest_buf_shape (void) |
static void | ktest_buf_reg (void) |
static void | ktest_core_ep_addr (void) |
static void | ktest_enc_dec (void) |
static int | ut_ktest_msg_LNetMDAttach (struct nlx_kcore_transfer_mc *kctm, struct nlx_core_buffer *lcbuf, struct nlx_kcore_buffer *kcb, lnet_md_t *umd) |
static int | ut_ktest_msg_LNetPut (struct nlx_kcore_transfer_mc *kctm, struct nlx_core_buffer *lcbuf, struct nlx_kcore_buffer *kcb, lnet_md_t *umd) |
int | ut_ktest_msg_buf_event_wait (struct nlx_core_domain *lcdom, struct nlx_core_transfer_mc *lctm, m0_time_t timeout) |
static int | ut_ktest_msg_ep_create (struct m0_net_end_point **epp, struct m0_net_transfer_mc *tm, const struct nlx_core_ep_addr *cepa) |
static void | ut_ktest_msg_put_event (struct nlx_kcore_buffer *kcb, unsigned mlength, unsigned offset, int status, int unlinked, struct nlx_core_ep_addr *addr) |
static void | ut_ktest_msg_send_event (struct nlx_kcore_buffer *kcb, unsigned mlength, int status) |
static void | ut_ktest_ack_event (struct nlx_kcore_buffer *kcb) |
static lnet_kiov_t * | ut_ktest_kiov_mem_dup (const lnet_kiov_t *kiov, size_t len) |
static void | ut_ktest_kiov_mem_free (lnet_kiov_t *kiov) |
static bool | ut_ktest_kiov_eq (const lnet_kiov_t *k1, const lnet_kiov_t *k2, size_t len) |
static unsigned | ut_ktest_kiov_count (const lnet_kiov_t *k, size_t len) |
static void | ktest_msg_body (struct ut_data *td) |
static void | ktest_msg (void) |
static int | ut_ktest_bulk_LNetMDAttach (struct nlx_kcore_transfer_mc *kctm, struct nlx_core_buffer *lcbuf, struct nlx_kcore_buffer *kcb, lnet_md_t *umd) |
static int | ut_ktest_bulk_LNetGet (struct nlx_kcore_transfer_mc *kctm, struct nlx_core_buffer *lcbuf, struct nlx_kcore_buffer *kcb, lnet_md_t *umd) |
static int | ut_ktest_bulk_LNetPut (struct nlx_kcore_transfer_mc *kctm, struct nlx_core_buffer *lcbuf, struct nlx_kcore_buffer *kcb, lnet_md_t *umd) |
static void | ut_ktest_bulk_put_event (struct nlx_kcore_buffer *kcb, unsigned mlength, int status) |
static void | ut_ktest_bulk_get_event (struct nlx_kcore_buffer *kcb, unsigned mlength, int status) |
static void | ut_ktest_bulk_send_event (struct nlx_kcore_buffer *kcb, unsigned mlength, int status, int unlinked, int threshold) |
static void | ut_ktest_bulk_reply_event (struct nlx_kcore_buffer *kcb, unsigned mlength, int status, int unlinked, int threshold) |
static void | ut_ktest_bulk_unlink_event (struct nlx_kcore_buffer *kcb) |
static void | ktest_bulk_body (struct ut_data *td) |
static void | ktest_bulk (void) |
static int | ut_kcore_core_dom_init (struct nlx_kcore_domain *kd, struct nlx_core_domain *cd) |
static void | ut_kcore_core_dom_fini (struct nlx_kcore_domain *kd, struct nlx_core_domain *cd) |
static int | ut_kcore_tm_start (struct nlx_kcore_domain *kd, struct nlx_core_transfer_mc *ctm, struct nlx_kcore_transfer_mc *ktm) |
static void | ut_kcore_tm_stop (struct nlx_core_transfer_mc *ctm, struct nlx_kcore_transfer_mc *ktm) |
static int | ut_dev_open (struct inode *inode, struct file *file) |
int | ut_dev_close (struct inode *inode, struct file *file) |
bool | user_helper_wait (int id) |
static void | ktest_dev (void) |
#define EXP_SEG_COUNT | ( | ptr, | |
segsize, | |||
expcount | |||
) |
#define KEB | ( | b | ) |
#define TEST_HDR_DATA_ENCODE | ( | _p, | |
_t | |||
) |
#define USER_HELPER_WAIT | ( | id | ) |
#define UT_BUFVEC_ALLOC | ( | v, | |
n | |||
) |
Definition at line 223 of file klnet_ut.c.
#define UT_BUFVEC_FREE | ( | v | ) |
Definition at line 229 of file klnet_ut.c.
anonymous enum |
Enumerator | |
---|---|
UT_PROC_WRITE_SIZE | max size of data to write to proc file |
UT_SYNC_DELAY_SEC | delay for user program to sync |
Definition at line 36 of file klnet_ut.c.
anonymous enum |
Enumerator | |
---|---|
UT_KMSG_OPS |
Definition at line 478 of file klnet_ut.c.
Definition at line 164 of file klnet_ut.c.
|
static |
|
static |
|
static |
|
static |
Definition at line 1400 of file klnet_ut.c.
|
static |
|
static |
|
static |
|
static |
Definition at line 201 of file klnet_ut.c.
|
static |
Definition at line 179 of file klnet_ut.c.
|
static |
|
static |
Definition at line 685 of file klnet_ut.c.
Definition at line 159 of file klnet_ut.c.
|
static |
Definition at line 51 of file klnet_ut.c.
bool user_helper_wait | ( | int | id | ) |
|
static |
Definition at line 2114 of file klnet_ut.c.
Definition at line 2091 of file klnet_ut.c.
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 627 of file klnet_ut.c.
|
static |
Definition at line 1334 of file klnet_ut.c.
|
static |
Definition at line 1257 of file klnet_ut.c.
|
static |
Definition at line 1205 of file klnet_ut.c.
|
static |
Definition at line 1288 of file klnet_ut.c.
|
static |
Definition at line 1318 of file klnet_ut.c.
|
static |
Definition at line 1370 of file klnet_ut.c.
|
static |
Definition at line 1351 of file klnet_ut.c.
|
static |
Definition at line 1389 of file klnet_ut.c.
|
static |
|
static |
|
static |
|
static |
Definition at line 655 of file klnet_ut.c.
int ut_ktest_msg_buf_event_wait | ( | struct nlx_core_domain * | lcdom, |
struct nlx_core_transfer_mc * | lctm, | ||
m0_time_t | timeout | ||
) |
Definition at line 555 of file klnet_ut.c.
|
static |
Definition at line 573 of file klnet_ut.c.
|
static |
Definition at line 482 of file klnet_ut.c.
|
static |
Definition at line 518 of file klnet_ut.c.
|
static |
Definition at line 584 of file klnet_ut.c.
|
static |
Definition at line 608 of file klnet_ut.c.
|
static |
Synchronize with user space program, updates ktest_id and signals main UT thread about each transition.
Definition at line 107 of file klnet_ut.c.
|
static |
Definition at line 44 of file klnet_ut.c.
|
static |
Definition at line 48 of file klnet_ut.c.
|
static |
Definition at line 46 of file klnet_ut.c.
|
static |
Definition at line 43 of file klnet_ut.c.
|
static |
Definition at line 45 of file klnet_ut.c.
|
static |
Definition at line 47 of file klnet_ut.c.
|
static |
Definition at line 169 of file klnet_ut.c.
|
static |
Definition at line 41 of file klnet_ut.c.
|
static |
Definition at line 2009 of file klnet_ut.c.
|
static |
Definition at line 2008 of file klnet_ut.c.
|
static |
Definition at line 2011 of file klnet_ut.c.
|
static |
Definition at line 2010 of file klnet_ut.c.
|
static |
Definition at line 2007 of file klnet_ut.c.
|
static |
Definition at line 2012 of file klnet_ut.c.
|
static |
Definition at line 2013 of file klnet_ut.c.
|
static |
Definition at line 2074 of file klnet_ut.c.
|
static |
Definition at line 1203 of file klnet_ut.c.
|
static |
Definition at line 1256 of file klnet_ut.c.
|
static |
Definition at line 1204 of file klnet_ut.c.
|
static |
Definition at line 1287 of file klnet_ut.c.
|
static |
Definition at line 554 of file klnet_ut.c.
|
static |
Definition at line 553 of file klnet_ut.c.
|
static |
Definition at line 572 of file klnet_ut.c.
|
static |
Definition at line 481 of file klnet_ut.c.
|
static |
Definition at line 516 of file klnet_ut.c.
|
static |
Definition at line 517 of file klnet_ut.c.