Changeset 53714 in vbox
- Timestamp:
- Jan 2, 2015 1:04:27 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97491
- Location:
- trunk/src/VBox/ExtPacks/VBoxDTrace
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/Config.kmk
r53657 r53714 3 3 # Config.kmk for VBoxDTrace. 4 4 # 5 # This ASSUMES that we're grafted on as src/VBox/ExtPacks/VBoxDTraceR0.5 # Contributed by: bird 6 6 # 7 7 8 8 # 9 # Copyright ( c) 2012 bird9 # Copyright (C) 2012-2015 Oracle Corporation 10 10 # 11 # Permission is hereby granted, free of charge, to any person 12 # obtaining a copy of this software and associated documentation 13 # files (the "Software"), to deal in the Software without 14 # restriction, including without limitation the rights to use, 15 # copy, modify, merge, publish, distribute, sublicense, and/or sell 16 # copies of the Software, and to permit persons to whom the 17 # Software is furnished to do so, subject to the following 18 # conditions: 19 # 20 # The above copyright notice and this permission notice shall be 21 # included in all copies or substantial portions of the Software. 22 # 23 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 24 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 25 # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 26 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 27 # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 28 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 30 # OTHER DEALINGS IN THE SOFTWARE. 11 # This file is part of VirtualBox Open Source Edition (OSE), as 12 # available from http://www.virtualbox.org. This file is free software; 13 # you can redistribute it and/or modify it under the terms of the Common 14 # Development and Distribution License Version 1.0 (CDDL) only, as it 15 # comes in the "COPYING.CDDL" file of the VirtualBox OSE distribution. 16 # VirtualBox OSE is distributed in the hope that it will be useful, but 17 # WITHOUT ANY WARRANTY of any kind. 31 18 # 32 19 33 20 include $(PATH_ROOT)/Config.kmk 34 21 35 VBOXDT_PATH_ONNV = $(PATH_ROOT)/src/VBox/ExtPacks/VBoxDTrace/onnv36 VBOXDT_PATH_UTS = $(VBOXDT_PATH_ONNV)/uts37 VBOXDT_PATH_CMD = $(VBOXDT_PATH_ONNV)/cmd22 VBOXDT_PATH_ONNV = $(PATH_ROOT)/src/VBox/ExtPacks/VBoxDTrace/onnv 23 VBOXDT_PATH_UTS = $(VBOXDT_PATH_ONNV)/uts 24 VBOXDT_PATH_CMD = $(VBOXDT_PATH_ONNV)/cmd 38 25 VBOXDT_PATH_LIBCTF = $(VBOXDT_PATH_ONNV)/lib/libctf 39 26 VBOXDT_PATH_CMN_CTF = $(VBOXDT_PATH_ONNV)/common/ctf 40 27 VBOXDT_PATH_LIBDTRACE = $(VBOXDT_PATH_ONNV)/lib/libdtrace 41 28 VBOXDT_PATH_CMN_DTRACE= $(VBOXDT_PATH_ONNV)/common/dtrace 29 -
trunk/src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk
r53680 r53714 3 3 # Top-level Makefile for the VBoxDTrace Extension Pack. 4 4 # 5 # Contributed by: bird 6 # 5 7 6 8 # 7 # Copyright ( c) 2012 bird9 # Copyright (C) 2012-2015 Oracle Corporation 8 10 # 9 # Permission is hereby granted, free of charge, to any person 10 # obtaining a copy of this software and associated documentation 11 # files (the "Software"), to deal in the Software without 12 # restriction, including without limitation the rights to use, 13 # copy, modify, merge, publish, distribute, sublicense, and/or sell 14 # copies of the Software, and to permit persons to whom the 15 # Software is furnished to do so, subject to the following 16 # conditions: 17 # 18 # The above copyright notice and this permission notice shall be 19 # included in all copies or substantial portions of the Software. 20 # 21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 22 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 23 # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 24 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 25 # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 26 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 28 # OTHER DEALINGS IN THE SOFTWARE. 11 # This file is part of VirtualBox Open Source Edition (OSE), as 12 # available from http://www.virtualbox.org. This file is free software; 13 # you can redistribute it and/or modify it under the terms of the Common 14 # Development and Distribution License Version 1.0 (CDDL) only, as it 15 # comes in the "COPYING.CDDL" file of the VirtualBox OSE distribution. 16 # VirtualBox OSE is distributed in the hope that it will be useful, but 17 # WITHOUT ANY WARRANTY of any kind. 29 18 # 30 19 31 20 SUB_DEPTH = ../../../../ 32 include 21 include $(KBUILD_PATH)/subheader.kmk 33 22 34 23 # … … 39 28 40 29 41 include $(KBUILD_PATH)/subfooter.kmk30 include $(FILE_KBUILD_SUB_FOOTER) 42 31 -
trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTrace/Makefile.kmk
r53701 r53714 3 3 # Sub-makefile for VBoxDTraceR0. 4 4 # 5 # Contributed by: bird 6 # 5 7 6 8 # 7 # Copyright ( c) 2012 bird9 # Copyright (C) 2012-2015 Oracle Corporation 8 10 # 9 # Permission is hereby granted, free of charge, to any person 10 # obtaining a copy of this software and associated documentation 11 # files (the "Software"), to deal in the Software without 12 # restriction, including without limitation the rights to use, 13 # copy, modify, merge, publish, distribute, sublicense, and/or sell 14 # copies of the Software, and to permit persons to whom the 15 # Software is furnished to do so, subject to the following 16 # conditions: 17 # 18 # The above copyright notice and this permission notice shall be 19 # included in all copies or substantial portions of the Software. 20 # 21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 22 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 23 # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 24 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 25 # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 26 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 28 # OTHER DEALINGS IN THE SOFTWARE. 11 # This file is part of VirtualBox Open Source Edition (OSE), as 12 # available from http://www.virtualbox.org. This file is free software; 13 # you can redistribute it and/or modify it under the terms of the Common 14 # Development and Distribution License Version 1.0 (CDDL) only, as it 15 # comes in the "COPYING.CDDL" file of the VirtualBox OSE distribution. 16 # VirtualBox OSE is distributed in the hope that it will be useful, but 17 # WITHOUT ANY WARRANTY of any kind. 29 18 # 30 19 31 20 SUB_DEPTH = ../../../../../ 32 include 21 include $(KBUILD_PATH)/subheader.kmk 33 22 34 23 PROGRAMS += VBoxDTrace … … 147 136 # 148 137 149 include $(KBUILD_PATH)/subfooter.kmk138 include $(FILE_KBUILD_SUB_FOOTER) 150 139 -
trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTraceR0/Makefile.kmk
r53671 r53714 3 3 # Sub-makefile for VBoxDTraceR0. 4 4 # 5 # Contributed by: bird 6 # 5 7 6 8 # 7 # Copyright ( c) 2012 bird9 # Copyright (C) 2012-2015 Oracle Corporation 8 10 # 9 # Permission is hereby granted, free of charge, to any person 10 # obtaining a copy of this software and associated documentation 11 # files (the "Software"), to deal in the Software without 12 # restriction, including without limitation the rights to use, 13 # copy, modify, merge, publish, distribute, sublicense, and/or sell 14 # copies of the Software, and to permit persons to whom the 15 # Software is furnished to do so, subject to the following 16 # conditions: 17 # 18 # The above copyright notice and this permission notice shall be 19 # included in all copies or substantial portions of the Software. 20 # 21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 22 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 23 # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 24 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 25 # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 26 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 28 # OTHER DEALINGS IN THE SOFTWARE. 11 # This file is part of VirtualBox Open Source Edition (OSE), as 12 # available from http://www.virtualbox.org. This file is free software; 13 # you can redistribute it and/or modify it under the terms of the Common 14 # Development and Distribution License Version 1.0 (CDDL) only, as it 15 # comes in the "COPYING.CDDL" file of the VirtualBox OSE distribution. 16 # VirtualBox OSE is distributed in the hope that it will be useful, but 17 # WITHOUT ANY WARRANTY of any kind. 29 18 # 30 19 31 20 SUB_DEPTH = ../../../../../ 32 include 21 include $(KBUILD_PATH)/subheader.kmk 33 22 34 23 SYSMODS += VBoxDTraceR0 … … 52 41 endif 53 42 54 include $(KBUILD_PATH)/subfooter.kmk43 include $(FILE_KBUILD_SUB_FOOTER) 55 44 -
trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTraceR0/VBoxDTraceR0.cpp
r53712 r53714 2 2 /** @file 3 3 * VBoxDTraceR0. 4 * 5 * Contributed by: bird 4 6 */ 5 7 6 8 /* 7 * Copyright (c) 2012 bird 8 * 9 * Permission is hereby granted, free of charge, to any person 10 * obtaining a copy of this software and associated documentation 11 * files (the "Software"), to deal in the Software without 12 * restriction, including without limitation the rights to use, 13 * copy, modify, merge, publish, distribute, sublicense, and/or sell 14 * copies of the Software, and to permit persons to whom the 15 * Software is furnished to do so, subject to the following 16 * conditions: 17 * 18 * The above copyright notice and this permission notice shall be 19 * included in all copies or substantial portions of the Software. 20 * 21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 22 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 23 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 24 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 25 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 26 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 28 * OTHER DEALINGS IN THE SOFTWARE. 9 * Copyright (C) 2012-2015 Oracle Corporation 10 * 11 * This file is part of VirtualBox Open Source Edition (OSE), as 12 * available from http://www.virtualbox.org. This file is free software; 13 * you can redistribute it and/or modify it under the terms of the Common 14 * Development and Distribution License Version 1.0 (CDDL) only, as it 15 * comes in the "COPYING.CDDL" file of the VirtualBox OSE distribution. 16 * VirtualBox OSE is distributed in the hope that it will be useful, but 17 * WITHOUT ANY WARRANTY of any kind. 18 * 29 19 */ 30 20 -
trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTraceR0/VBoxDTraceR0A.asm
r53665 r53714 2 2 ;; @file 3 3 ; VBoxDTraceR0 - Assembly Hacks. 4 ; 5 ; Contributed by: bird 4 6 ; 5 7 6 8 ; 7 ; Copyright ( c) 2012 bird9 ; Copyright (C) 2012-2015 Oracle Corporation 8 10 ; 9 ; Permission is hereby granted, free of charge, to any person 10 ; obtaining a copy of this software and associated documentation 11 ; files (the "Software"), to deal in the Software without 12 ; restriction, including without limitation the rights to use, 13 ; copy, modify, merge, publish, distribute, sublicense, and/or sell 14 ; copies of the Software, and to permit persons to whom the 15 ; Software is furnished to do so, subject to the following 16 ; conditions: 17 ; 18 ; The above copyright notice and this permission notice shall be 19 ; included in all copies or substantial portions of the Software. 20 ; 21 ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 22 ; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 23 ; OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 24 ; NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 25 ; HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 26 ; WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 ; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 28 ; OTHER DEALINGS IN THE SOFTWARE. 11 ; This file is part of VirtualBox Open Source Edition (OSE), as 12 ; available from http://www.virtualbox.org. This file is free software; 13 ; you can redistribute it and/or modify it under the terms of the Common 14 ; Development and Distribution License Version 1.0 (CDDL) only, as it 15 ; comes in the "COPYING.CDDL" file of the VirtualBox OSE distribution. 16 ; VirtualBox OSE is distributed in the hope that it will be useful, but 17 ; WITHOUT ANY WARRANTY of any kind. 29 18 ; 30 19 -
trunk/src/VBox/ExtPacks/VBoxDTrace/include/VBoxDTraceTypes.h
r53709 r53714 2 2 /** @file 3 3 * VBoxDTraceTypes.h - Fake a bunch of Solaris types. 4 */5 6 /*7 * Copyright (c) 2012 bird8 4 * 9 * Permission is hereby granted, free of charge, to any person 10 * obtaining a copy of this software and associated documentation 11 * files (the "Software"), to deal in the Software without 12 * restriction, including without limitation the rights to use, 13 * copy, modify, merge, publish, distribute, sublicense, and/or sell 14 * copies of the Software, and to permit persons to whom the 15 * Software is furnished to do so, subject to the following 16 * conditions: 5 * Contributed by: bird 6 */ 7 8 /* 9 * Copyright (C) 2012-2015 Oracle Corporation 17 10 * 18 * The above copyright notice and this permission notice shall be 19 * included in all copies or substantial portions of the Software. 11 * This file is part of VirtualBox Open Source Edition (OSE), as 12 * available from http://www.virtualbox.org. This file is free software; 13 * you can redistribute it and/or modify it under the terms of the Common 14 * Development and Distribution License Version 1.0 (CDDL) only, as it 15 * comes in the "COPYING.CDDL" file of the VirtualBox OSE distribution. 16 * VirtualBox OSE is distributed in the hope that it will be useful, but 17 * WITHOUT ANY WARRANTY of any kind. 20 18 * 21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,22 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES23 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND24 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT25 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,26 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING27 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR28 * OTHER DEALINGS IN THE SOFTWARE.29 19 */ 30 20 … … 87 77 #define IS_P2ALIGNED(uWhat, uAlign) ( !((uWhat) & ((uAlign) - 1)) ) 88 78 #define P2ROUNDUP(uWhat, uAlign) ( ((uWhat) + (uAlign) - 1) & ~(uAlign - 1) ) 89 #define roundup(uWhat, uUnit)( ( (uWhat) + ((uUnit) - 1)) / (uUnit) * (uUnit) )79 #define roundup(uWhat, uUnit) ( ( (uWhat) + ((uUnit) - 1)) / (uUnit) * (uUnit) ) 90 80 91 81 #if defined(RT_ARCH_X86) … … 419 409 # define strncasecmp(a_psz1, a_psz2, a_cch) RTStrNICmp(a_psz1, a_psz2, a_cch) 420 410 # undef assert 421 # define assert(expr) 411 # define assert(expr) Assert(expr) 422 412 423 413 /* This isn't necessarily making things easier at first, but allows EF and … … 440 430 /* Replacement for strndup(), requires editing the code unfortunately. */ 441 431 # define MY_STRDUPA(a_pszRes, a_pszSrc) \ 442 443 444 445 446 432 do { \ 433 size_t cb = strlen(a_pszSrc) + 1; \ 434 (a_pszRes) = (char *)alloca(cb); \ 435 memcpy(a_pszRes, a_pszSrc, cb); \ 436 } while (0) 447 437 448 438 /*
Note:
See TracChangeset
for help on using the changeset viewer.