Skip to content

Commit

Permalink
kernpath: delete the dt_kernpath 'public API wrappers'
Browse files Browse the repository at this point in the history
These were used by the old module dumper as an escape hatch to get
inside libdtrace and use its facilities to locate kernel modules.

Now the old module dumper is dead, we don't need this any more.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Reviewed-by: Eugene Loh <eugene.loh@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
  • Loading branch information
nickalcock authored and kvanhees committed Dec 1, 2021
1 parent bead361 commit fc0e5e7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 47 deletions.
19 changes: 0 additions & 19 deletions libdtrace/dt_kernel_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,22 +212,3 @@ dt_kern_path_lookup_by_name(dtrace_hdl_t *dtp, const char *name)

return NULL;
}

/*
* Public API wrappers.
*/
dt_kern_path_t *
dtrace__internal_kern_path_create(dtrace_hdl_t *dtp, char *name, char *path)
__attribute__((alias("dt_kern_path_create")));

void
dtrace__internal_kern_path_destroy(dtrace_hdl_t *dtp, dt_kern_path_t *dkpp)
__attribute__((alias("dt_kern_path_destroy")));

int
dtrace__internal_kern_path_update(dtrace_hdl_t *dtp)
__attribute__((alias("dt_kern_path_update")));

dt_kern_path_t *
dtrace__internal_kern_path_lookup_by_name(dtrace_hdl_t *dtp, const char *name)
__attribute__((alias("dt_kern_path_lookup_by_name")));
20 changes: 0 additions & 20 deletions libdtrace/dt_kernel_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,4 @@ extern dt_kern_path_t *dt_kern_path_lookup_by_name(dtrace_hdl_t *dtp,
const char *name);
extern void dt_kern_path_destroy(dtrace_hdl_t *dtp, dt_kern_path_t *dkpp);

/*
* Public API wrappers.
*
* Programs outside libdtrace can call these -- but their API stability
* is not guaranteed, and they should only be called by programs inside
* the DTrace package.
*/

extern dt_kern_path_t *
dtrace__internal_kern_path_create(dtrace_hdl_t *dtp, char *name, char *path);

extern void
dtrace__internal_kern_path_destroy(dtrace_hdl_t *dtp, dt_kern_path_t *dkpp);

extern int
dtrace__internal_kern_path_update(dtrace_hdl_t *dtp);

extern dt_kern_path_t *
dtrace__internal_kern_path_lookup_by_name(dtrace_hdl_t *dtp, const char *name);

#endif /* _DT_KERNEL_MODULE_H */
9 changes: 1 addition & 8 deletions libdtrace/libdtrace.ver
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Oracle Linux DTrace.
# Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2009, 2021, 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.

Expand Down Expand Up @@ -94,10 +94,3 @@ LIBDTRACE_1.0 {
local:
*;
};

# These are exposed for internal purposes, and are not part of the public
# interface.
LIBDTRACE_PRIVATE
{
dtrace__internal_*;
};

0 comments on commit fc0e5e7

Please sign in to comment.