We'll need this for affinity mask setting. Also add room
for flags, we'll want to pass back a flag mask of supported
features on the remote end.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
if (!client->name)
client->name = strdup((char *) probe->hostname);
if (!client->name)
client->name = strdup((char *) probe->hostname);
+ gc->client_cpus = le32_to_cpu(probe->cpus);
+ gc->client_flags = le64_to_cpu(probe->flags);
+
gdk_threads_enter();
gtk_label_set_text(GTK_LABEL(ge->probe.hostname), (char *) probe->hostname);
gdk_threads_enter();
gtk_label_set_text(GTK_LABEL(ge->probe.hostname), (char *) probe->hostname);
struct gui_entry *ge;
struct fio_client *client;
GtkWidget *err_entry;
struct gui_entry *ge;
struct fio_client *client;
GtkWidget *err_entry;
+ uint32_t client_cpus;
+ uint64_t client_flags;
struct flist_head o_list;
unsigned int o_list_nr;
struct flist_head o_list;
unsigned int o_list_nr;
probe.os = FIO_OS;
probe.arch = FIO_ARCH;
probe.os = FIO_OS;
probe.arch = FIO_ARCH;
probe.bpp = sizeof(void *);
probe.bpp = sizeof(void *);
+ probe.cpus = __cpu_to_le32(cpus_online());
+ probe.flags = 0;
return fio_net_send_cmd(server_fd, FIO_NET_CMD_PROBE, &probe, sizeof(probe), &tag, NULL);
}
return fio_net_send_cmd(server_fd, FIO_NET_CMD_PROBE, &probe, sizeof(probe), &tag, NULL);
}
FIO_SERVER_MAX_FRAGMENT_PDU = 1024,
FIO_SERVER_MAX_FRAGMENT_PDU = 1024,
uint8_t os;
uint8_t arch;
uint8_t bpp;
uint8_t os;
uint8_t arch;
uint8_t bpp;
+ uint32_t cpus;
+ uint64_t flags;
};
struct cmd_single_line_pdu {
};
struct cmd_single_line_pdu {