Skip to content

CA-150812: Xentop doesn't display VBD3 data #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 drivers/tapdisk-metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ td_metrics_vbd_start(int domain, int id, stats_t *vbd_stats)
goto out;
}
vbd_stats->stats = vbd_stats->shm.mem;
vbd_stats->stats->version = 1;
out:
return err;

Expand Down
3 changes: 2 additions & 1 deletion drivers/tapdisk-metrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#define TAPDISK_METRICS_PATHF "/dev/shm/td3-%d"
#define TAPDISK_METRICS_VDI_PATHF "%s/vdi-%hu"
#define TAPDISK_METRICS_VBD_PATHF "%s/vbd-%d-%d"
#define TAPDISK_METRICS_VBD_PATHF "%s/vbd3-%d-%d"
#define TAPDISK_METRICS_BLKTAP_PATHF "%s/blktap-%d"
#define TAPDISK_METRICS_NBD_PATHF "%s/nbd-%d"

Expand All @@ -31,6 +31,7 @@
#include "tapdisk.h"

struct stats {
uint32_t version; //Used to check version of this struct in xentop.
unsigned long long read_reqs_submitted;
unsigned long long read_reqs_completed;
unsigned long long read_sectors;
Expand Down