blkback.c (249132) | blkback.c (262057) |
---|---|
1/*- 2 * Copyright (c) 2009-2011 Spectra Logic Corporation 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 27 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * POSSIBILITY OF SUCH DAMAGES. 29 * 30 * Authors: Justin T. Gibbs (Spectra Logic Corporation) 31 * Ken Merry (Spectra Logic Corporation) 32 */ 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009-2011 Spectra Logic Corporation 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 27 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * POSSIBILITY OF SUCH DAMAGES. 29 * 30 * Authors: Justin T. Gibbs (Spectra Logic Corporation) 31 * Ken Merry (Spectra Logic Corporation) 32 */ 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: stable/9/sys/dev/xen/blkback/blkback.c 249132 2013-04-05 08:22:11Z mav $"); | 34__FBSDID("$FreeBSD: stable/9/sys/dev/xen/blkback/blkback.c 262057 2014-02-17 13:58:50Z avg $"); |
35 36/** 37 * \file blkback.c 38 * 39 * \brief Device driver supporting the vending of block storage from 40 * a FreeBSD domain to other domains. 41 */ 42 --- 1989 unchanged lines hidden (view full) --- 2032 struct xbb_softc *xbb; 2033 2034 /* Defer to kernel thread. */ 2035 xbb = (struct xbb_softc *)arg; 2036 taskqueue_enqueue(xbb->io_taskqueue, &xbb->io_task); 2037} 2038 2039SDT_PROVIDER_DEFINE(xbb); | 35 36/** 37 * \file blkback.c 38 * 39 * \brief Device driver supporting the vending of block storage from 40 * a FreeBSD domain to other domains. 41 */ 42 --- 1989 unchanged lines hidden (view full) --- 2032 struct xbb_softc *xbb; 2033 2034 /* Defer to kernel thread. */ 2035 xbb = (struct xbb_softc *)arg; 2036 taskqueue_enqueue(xbb->io_taskqueue, &xbb->io_task); 2037} 2038 2039SDT_PROVIDER_DEFINE(xbb); |
2040SDT_PROBE_DEFINE1(xbb, kernel, xbb_dispatch_dev, flush, flush, "int"); 2041SDT_PROBE_DEFINE3(xbb, kernel, xbb_dispatch_dev, read, read, "int", "uint64_t", | 2040SDT_PROBE_DEFINE1(xbb, kernel, xbb_dispatch_dev, flush, "int"); 2041SDT_PROBE_DEFINE3(xbb, kernel, xbb_dispatch_dev, read, "int", "uint64_t", |
2042 "uint64_t"); | 2042 "uint64_t"); |
2043SDT_PROBE_DEFINE3(xbb, kernel, xbb_dispatch_dev, write, write, "int", | 2043SDT_PROBE_DEFINE3(xbb, kernel, xbb_dispatch_dev, write, "int", |
2044 "uint64_t", "uint64_t"); 2045 2046/*----------------------------- Backend Handlers -----------------------------*/ 2047/** 2048 * Backend handler for character device access. 2049 * 2050 * \param xbb Per-instance xbb configuration structure. 2051 * \param reqlist Allocated internal request list structure. --- 161 unchanged lines hidden (view full) --- 2213 2214fail_free_bios: 2215 for (bio_idx = 0; bio_idx < (nbio-1); bio_idx++) 2216 g_destroy_bio(bios[bio_idx]); 2217 2218 return (error); 2219} 2220 | 2044 "uint64_t", "uint64_t"); 2045 2046/*----------------------------- Backend Handlers -----------------------------*/ 2047/** 2048 * Backend handler for character device access. 2049 * 2050 * \param xbb Per-instance xbb configuration structure. 2051 * \param reqlist Allocated internal request list structure. --- 161 unchanged lines hidden (view full) --- 2213 2214fail_free_bios: 2215 for (bio_idx = 0; bio_idx < (nbio-1); bio_idx++) 2216 g_destroy_bio(bios[bio_idx]); 2217 2218 return (error); 2219} 2220 |
2221SDT_PROBE_DEFINE1(xbb, kernel, xbb_dispatch_file, flush, flush, "int"); 2222SDT_PROBE_DEFINE3(xbb, kernel, xbb_dispatch_file, read, read, "int", "uint64_t", | 2221SDT_PROBE_DEFINE1(xbb, kernel, xbb_dispatch_file, flush, "int"); 2222SDT_PROBE_DEFINE3(xbb, kernel, xbb_dispatch_file, read, "int", "uint64_t", |
2223 "uint64_t"); | 2223 "uint64_t"); |
2224SDT_PROBE_DEFINE3(xbb, kernel, xbb_dispatch_file, write, write, "int", | 2224SDT_PROBE_DEFINE3(xbb, kernel, xbb_dispatch_file, write, "int", |
2225 "uint64_t", "uint64_t"); 2226 2227/** 2228 * Backend handler for file access. 2229 * 2230 * \param xbb Per-instance xbb configuration structure. 2231 * \param reqlist Allocated internal request list. 2232 * \param operation BIO_* I/O operation code. --- 1763 unchanged lines hidden --- | 2225 "uint64_t", "uint64_t"); 2226 2227/** 2228 * Backend handler for file access. 2229 * 2230 * \param xbb Per-instance xbb configuration structure. 2231 * \param reqlist Allocated internal request list. 2232 * \param operation BIO_* I/O operation code. --- 1763 unchanged lines hidden --- |