-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
USDT will include a daemon that implements a CUSE device that programs containing USDT probes issue ioctl()s to. This daemon needs to create uprobes, and this needs to use libproc to extract information about the processes (like mapping addresses, etc). This is something the rest of DTrace can already do: so split out infrastructure needed by libproc and infrastructure needed to create uprobes into a new libcommon (static) library that the daemon can use. Make tiny adjustments to libproc and triggers that use it so that libproc can stand independent of libdtrace (it was very nearly there already: only one debugging statement change and a move of dt_list into the common library is needed). A future commit will adjust DTrace to use this library to create uprobes too. Signed-off-by: Nick Alcock <nick.alcock@oracle.com> Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information
1 parent
164fe6f
commit ec5254b
Showing
9 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Oracle Linux DTrace. | ||
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at | ||
# http://oss.oracle.com/licenses/upl. | ||
|
||
BUILDLIBS += libcommon | ||
LIBS += libcommon | ||
|
||
libcommon_TARGET = libcommon | ||
libcommon_DIR := $(current-dir) | ||
libcommon_CPPFLAGS := -Ilibcommon -Ilibproc | ||
libcommon_SOURCES = dt_list.c | ||
libcommon_LIBSOURCES = libcommon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
%: | ||
$(MAKE) -C .. $@ | ||
|
||
all:: | ||
$(MAKE) -C .. all |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters