Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0940d7d2
Commit
0940d7d2
authored
Dec 25, 2009
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
f2d4808f
b3debb1d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
cmake/dtrace.cmake
cmake/dtrace.cmake
+15
-4
No files found.
cmake/dtrace.cmake
View file @
0940d7d2
...
@@ -57,6 +57,13 @@ IF(ENABLE_DTRACE)
...
@@ -57,6 +57,13 @@ IF(ENABLE_DTRACE)
${
CMAKE_BINARY_DIR
}
/include/probes_mysql_dtrace.h
${
CMAKE_BINARY_DIR
}
/include/probes_mysql_dtrace.h
${
CMAKE_BINARY_DIR
}
/include/probes_mysql_nodtrace.h
${
CMAKE_BINARY_DIR
}
/include/probes_mysql_nodtrace.h
)
)
IF
(
CMAKE_SYSTEM_NAME MATCHES
"Linux"
)
# Systemtap object
EXECUTE_PROCESS
(
COMMAND
${
DTRACE
}
-G -s
${
CMAKE_SOURCE_DIR
}
/include/probes_mysql.d.base
-o
${
CMAKE_BINARY_DIR
}
/probes_mysql.o
)
ENDIF
()
ADD_CUSTOM_TARGET
(
gen_dtrace_header
ADD_CUSTOM_TARGET
(
gen_dtrace_header
DEPENDS
DEPENDS
${
CMAKE_BINARY_DIR
}
/include/probes_mysql.d
${
CMAKE_BINARY_DIR
}
/include/probes_mysql.d
...
@@ -66,10 +73,14 @@ IF(ENABLE_DTRACE)
...
@@ -66,10 +73,14 @@ IF(ENABLE_DTRACE)
ENDIF
()
ENDIF
()
MACRO
(
DTRACE_INSTRUMENT target
)
MACRO
(
DTRACE_INSTRUMENT target
)
IF
(
ENABLE_DTRACE
)
IF
(
ENABLE_DTRACE
)
ADD_DEPENDENCIES
(
${
target
}
gen_dtrace_header
)
ADD_DEPENDENCIES
(
${
target
}
gen_dtrace_header
)
IF
(
CMAKE_SYSTEM_NAME MATCHES
"Linux"
)
TARGET_LINK_LIBRARIES
(
${
target
}
${
CMAKE_BINARY_DIR
}
/probes_mysql.o
)
ENDIF
()
# On Solaris, invoke dtrace -G to generate object file and
# On Solaris, invoke dtrace -G to generate object file and
# link it together with target.
# link it together with target.
IF
(
CMAKE_SYSTEM_NAME MATCHES
"SunOS"
)
IF
(
CMAKE_SYSTEM_NAME MATCHES
"SunOS"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment