Skip to content

Commit

Permalink
Remove the long-orphaned DT_DISASM macro
Browse files Browse the repository at this point in the history
Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
  • Loading branch information
kvanhees committed Feb 8, 2022
1 parent c165d73 commit ae197a8
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions libdtrace/dt_dis.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Oracle Linux DTrace.
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2021, 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.
*/
Expand All @@ -15,8 +15,13 @@ extern "C" {
#endif

/*
* The following disassembler listings can be requested. The values can be
* combined to select multiple listings.
* The following disassembler listings can be requested with -xdisasm=....
* - After compilation and assembly of a clause function.
* - After constructing a probe program.
* - After linking in dependencies.
* - After all processing, prior to loading the program.
* The values can be combined to select multiple listings. The '-S' option
* must also be supplied in order for disassembler output to be generated.
*/
#define DT_DISASM_OPT_CLAUSE 1 /* default */
#define DT_DISASM_OPT_PROG 2
Expand Down Expand Up @@ -52,19 +57,6 @@ extern "C" {
dt_dis_difo((dp), (fp), (idp), (pdp), \
"final program"); \
} while(0)
/*
* Macro to test whether a given disassembler bit is set in the dt_disasm
* bit-vector. If the bit for listing 'l' is set, the D disassembler will be
* invoked for that specific listing. The '-S' option must also be supplied in
* order for disassembler output to be generated.
*
* Supported listings are:
* 1 After compilation and assembly of a clause function.
* 2 After constructing a probe program.
* 3 After linking in dependencies.
* 4 After all processing, prior to loading the program.
*/
#define DT_DISASM(dtp, l) ((dtp)->dt_disasm & (1 << ((l) - 1)))

extern void dt_dis_program(dtrace_hdl_t *dtp, dtrace_prog_t *pgp, FILE *fp);
extern void dt_dis_difo(const dtrace_difo_t *dp, FILE *fp,
Expand Down

0 comments on commit ae197a8

Please sign in to comment.