10Sstevel@tonic-gate/* 20Sstevel@tonic-gate * Copyright (c) 2013-2019, Intel Corporation 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * Redistribution and use in source and binary forms, with or without 50Sstevel@tonic-gate * modification, are permitted provided that the following conditions are met: 60Sstevel@tonic-gate * 70Sstevel@tonic-gate * * Redistributions of source code must retain the above copyright notice, 80Sstevel@tonic-gate * this list of conditions and the following disclaimer. 90Sstevel@tonic-gate * * Redistributions in binary form must reproduce the above copyright notice, 100Sstevel@tonic-gate * this list of conditions and the following disclaimer in the documentation 110Sstevel@tonic-gate * and/or other materials provided with the distribution. 120Sstevel@tonic-gate * * Neither the name of Intel Corporation nor the names of its contributors 130Sstevel@tonic-gate * may be used to endorse or promote products derived from this software 140Sstevel@tonic-gate * without specific prior written permission. 150Sstevel@tonic-gate * 160Sstevel@tonic-gate * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 170Sstevel@tonic-gate * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 180Sstevel@tonic-gate * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 190Sstevel@tonic-gate * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 200Sstevel@tonic-gate * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 210Sstevel@tonic-gate * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 220Sstevel@tonic-gate * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 230Sstevel@tonic-gate * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 240Sstevel@tonic-gate * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 250Sstevel@tonic-gate * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 260Sstevel@tonic-gate * POSSIBILITY OF SUCH DAMAGE. 270Sstevel@tonic-gate */ 280Sstevel@tonic-gate 290Sstevel@tonic-gate#include "intel-pt.h" 300Sstevel@tonic-gate 310Sstevel@tonic-gate 320Sstevel@tonic-gatestruct pt_version pt_library_version(void) 330Sstevel@tonic-gate{ 340Sstevel@tonic-gate struct pt_version v = { 350Sstevel@tonic-gate /* .major = */ PT_VERSION_MAJOR, 360Sstevel@tonic-gate /* .minor = */ PT_VERSION_MINOR, 370Sstevel@tonic-gate /* .patch = */ PT_VERSION_PATCH, 380Sstevel@tonic-gate /* .build = */ PT_VERSION_BUILD, 390Sstevel@tonic-gate /* .ext = */ PT_VERSION_EXT 400Sstevel@tonic-gate }; 410Sstevel@tonic-gate 420Sstevel@tonic-gate return v; 430Sstevel@tonic-gate} 440Sstevel@tonic-gate