/freebsd-src/sys/sys/ |
H A D | lockstat.h | 82 #define LOCKSTAT_RECORD0(probe, lp) \ argument 83 SDT_PROBE1(lockstat, , , probe, lp) 85 #define LOCKSTAT_RECORD1(probe, lp, arg1) \ argument 86 SDT_PROBE2(lockstat, , , probe, lp, arg1) 88 #define LOCKSTAT_RECORD2(probe, lp, arg1, arg2) \ argument 89 SDT_PROBE3(lockstat, , , probe, lp, arg1, arg2) 91 #define LOCKSTAT_RECORD3(probe, lp, arg1, arg2, arg3) \ argument 92 SDT_PROBE4(lockstat, , , probe, lp, arg1, arg2, arg3) 94 #define LOCKSTAT_RECORD4(probe, lp, arg1, arg2, arg3, arg4) \ argument 95 SDT_PROBE5(lockstat, , , probe, lp, arg1, arg2, arg3, arg4) [all …]
|
/freebsd-src/share/man/man9/ |
H A D | SDT.9 | 81 When a DTrace probe corresponding to a given trace point is enabled, threads 82 that execute the trace point will call a handler and cause the probe to fire. 84 to the DTrace framework when an enabled probe fires. 86 Multiple trace points may correspond to a single DTrace probe, allowing 89 For instance, a DTrace probe corresponding to the arrival of an IP packet into 125 Once a probe has been defined, trace points for that probe may be added to 127 DTrace probe identifiers consist of a provider, module, function and name, all 130 probe definition. 131 Note that probes should not specify a module name: the module name of a probe is 142 character (dash) is wanted in a probe name, [all …]
|
/freebsd-src/cddl/usr.sbin/dwatch/ |
H A D | dwatch | 29 # $Title: Watch processes as they trigger a particular DTrace probe $ 118 PROBE= 145 printf "\t probe[,...] [args ...]\n" 146 printf " %s -l [-fmnPqy] [-r regex] [probe ...]\n" "$pgm" 160 "Enable probe matching the specified function name." 174 "Enable probe matching the specified module name." 176 "Enable probe matching the specified probe name." 186 "Enable probe matching the specified provider name." 208 "Trace. Print \`<probe-id>' when a probe is triggered." 278 local probe="$1" [all …]
|
/freebsd-src/sys/cddl/dev/sdt/ |
H A D | sdt.c | 138 sdt_create_probe(struct sdt_probe *probe) in sdt_create_probe() argument 149 if (probe->version != (int)sizeof(*probe)) { in sdt_create_probe() 150 printf("ignoring probe %p, version %u expected %u\n", in sdt_create_probe() 151 probe, probe->version, (int)sizeof(*probe)); in sdt_create_probe() 156 if (strcmp(prov->name, probe->prov->name) == 0) in sdt_create_probe() 159 KASSERT(prov != NULL, ("probe defined without a provider")); in sdt_create_probe() 162 if (*probe in sdt_create_probe() 218 struct sdt_probe *probe; global() member 253 sdt_probe_update(struct sdt_probe * probe,bool enable) sdt_probe_update() argument 270 struct sdt_probe *probe; sdt_enable() local 291 struct sdt_probe *probe; sdt_disable() local 314 struct sdt_probe *probe = parg; sdt_getargdesc() local 381 for (struct sdt_probe **probe = p_begin; probe < p_end; sdt_kld_load_probes() local [all...] |
/freebsd-src/sys/dev/bhnd/bhndb/ |
H A D | bhndb_pci.c | 101 struct bhndb_pci_probe *probe); 106 static int bhndb_pci_probe_alloc(struct bhndb_pci_probe **probe, 108 static void bhndb_pci_probe_free(struct bhndb_pci_probe *probe); 111 struct bhndb_pci_probe *probe, 123 struct bhndb_pci_probe *probe); 150 struct bhndb_pci_probe *probe; /**< borrowed probe reference */ member 157 * May be safely used during probe or early device attach, prior to calling 264 struct bhndb_pci_probe *probe; in bhndb_pci_probe() local 271 probe in bhndb_pci_probe() 359 struct bhndb_pci_probe *probe; bhndb_pci_attach() local 803 bhndb_pci_srsh_pi_war(struct bhndb_pci_softc * sc,struct bhndb_pci_probe * probe) bhndb_pci_srsh_pi_war() argument 1285 bhndb_pci_probe_alloc(struct bhndb_pci_probe ** probe,device_t dev,bhnd_devclass_t hostb_devclass) bhndb_pci_probe_alloc() argument 1405 bhndb_pci_probe_free(struct bhndb_pci_probe * probe) bhndb_pci_probe_free() argument 1428 bhndb_pci_probe_copy_core_table(struct bhndb_pci_probe * probe,struct bhnd_core_info ** cores,u_int * ncores) bhndb_pci_probe_copy_core_table() argument 1457 bhndb_pci_probe_has_mapping(struct bhndb_pci_probe * probe,bhnd_addr_t addr,bhnd_size_t size) bhndb_pci_probe_has_mapping() argument 1497 bhndb_pci_probe_map(struct bhndb_pci_probe * probe,bhnd_addr_t addr,bhnd_size_t offset,bhnd_size_t size,struct resource ** res,bus_size_t * res_offset) bhndb_pci_probe_map() argument 1584 bhndb_pci_probe_write(struct bhndb_pci_probe * probe,bhnd_addr_t addr,bhnd_size_t offset,uint32_t value,u_int width) bhndb_pci_probe_write() argument 1627 bhndb_pci_probe_read(struct bhndb_pci_probe * probe,bhnd_addr_t addr,bhnd_size_t offset,u_int width) bhndb_pci_probe_read() argument 1665 bhndb_pci_eio_init(struct bhndb_pci_eio * pio,struct bhndb_pci_probe * probe) bhndb_pci_eio_init() argument [all...] |
/freebsd-src/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCPseudoProbe.cpp | 1 //===- lib/MC/MCPseudoProbe.cpp - Pseudo probe encoding support ----------===// 55 "Last probe should not be null for non-sentinel probes"); in emit() 64 assert(Type <= 0xF && "Probe type too big to encode, exceeding 15"); in emit() 69 "Probe attributes too big to encode, exceeding 7"); in emit() 87 // Emit the GUID of the split function that the sentinel probe represents. in emit() 96 dbgs() << "Probe: " << Index << "\n"; in emit() 101 const MCPseudoProbe &Probe, const MCPseudoProbeInlineStack &InlineStack) { in addPseudoProbe() 106 // Probe: GUID of C, ... in addPseudoProbe() 108 // which means, Function A inlines function B at call site with a probe id of in addPseudoProbe() 109 // 88, and B inlines C at probe 6 in addPseudoProbe() 100 addPseudoProbe(const MCPseudoProbe & Probe,const MCPseudoProbeInlineStack & InlineStack) addPseudoProbe() argument 177 for (const auto &Probe : Probes) { emit() local 248 const MCPseudoProbe *Probe = &SentinelProbe; emit() local 567 for (auto &Probe : It->second) { printProbeForAddress() local 594 for (const auto &Probe : Probes) { getCallProbeForAddr() local 623 getInlineContextForProbe(const MCDecodedPseudoProbe * Probe,SmallVectorImpl<MCPseduoProbeFrameLocation> & InlineContextStack,bool IncludeLeaf) const getInlineContextForProbe() argument [all...] |
/freebsd-src/contrib/llvm-project/llvm/lib/IR/ |
H A D | PseudoProbe.cpp | 1 //===- PseudoProbe.cpp - Pseudo Probe Helpers -----------------------------===// 9 // This file implements the helpers to manipulate pseudo probe IR intrinsic 29 PseudoProbe Probe; in extractProbeFromDiscriminator() local 30 Probe.Id = in extractProbeFromDiscriminator() 32 Probe.Type = in extractProbeFromDiscriminator() 34 Probe.Attr = in extractProbeFromDiscriminator() 36 Probe.Factor = in extractProbeFromDiscriminator() 39 Probe.Discriminator = 0; in extractProbeFromDiscriminator() 40 return Probe; in extractProbeFromDiscriminator() 49 "Only call instructions should have pseudo probe encode in extractProbeFromDiscriminator() 58 PseudoProbe Probe; extractProbe() local [all...] |
/freebsd-src/lib/libthr/ |
H A D | plockstat.d | 30 probe mutex__acquire(void *mutex, int rec, int spincount); 31 probe mutex__release(void *mutex, int rec); 32 probe mutex__block(void *mutex); 33 probe mutex__spin(void *mutex); 34 probe mutex__spun(void *mutex, int success, int spincount); 35 probe mutex__blocked(void *mutex, int success); 36 probe mutex__error(void *mutex, int err); 38 probe rw__acquire(void *lock, int wr); 39 probe rw__release(void *lock, int wr); 40 probe rw__bloc [all...] |
/freebsd-src/sys/security/audit/ |
H A D | audit_dtrace.c | 55 * probes, which use the event's name to create the probe: 68 * probe activity with the event described in the record. The latter gives 85 * a catch-all probe for those events without mappings? 97 * into the probe explicitly (e.g., as arg0), since it would no longer be 98 * available as the probe function name. 119 * Strings for the "module" and "name" portions of the probe. The name of the 120 * audit event will be the "function" portion of the probe. All dtaudit 157 * minimise probe effect when not used at all, we not only check for the probe 159 * one probe is enabled, before acquiring locks, searching lists, etc. 168 * additional probe types (e.g., event clases). [all …]
|
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | SampleProfileProbe.cpp | 1 //===- SampleProfileProbe.cpp - Pseudo probe Instrumentation -------------===// 38 #define DEBUG_TYPE "pseudo-probe" 44 VerifyPseudoProbe("verify-pseudo-probe", cl::init(false), cl::Hidden, 45 cl::desc("Do pseudo probe verification")); 48 "verify-pseudo-probe-funcs", cl::Hidden, 52 UpdatePseudoProbe("update-pseudo-probe", cl::init(true), cl::Hidden, 53 cl::desc("Update pseudo probe distribution factor")); 98 "\n*** Pseudo Probe Verification After " + PassID.str() + " ***\n"; in runAfterPass() 139 if (std::optional<PseudoProbe> Probe = extractProbe(I)) { in collectProbeFactors() 141 ProbeFactors[{Probe in collectProbeFactors() 138 if (std::optional<PseudoProbe> Probe = extractProbe(I)) { collectProbeFactors() local 322 auto *Probe = Builder.CreateCall(ProbeFn, Args); instrumentOneFunc() local 397 if (std::optional<PseudoProbe> Probe = extractProbe(I)) { runOnFunction() local 407 if (std::optional<PseudoProbe> Probe = extractProbe(I)) { runOnFunction() local [all...] |
/freebsd-src/share/man/man4/ |
H A D | dtrace_sched.4 | 53 probe fires when a thread's active scheduling priority is about to be updated. 61 probe fires when the currently-running thread elevates the priority of another 70 probe fires immediately before a runnable thread is removed from a scheduler 85 probe fires when a runnable thread is about to be added to a scheduler run 96 probe fires after the load of a thread queue is adjusted. 103 probe is triggered by the scheduler suspending execution of the 106 probe fires when the current thread has been selected to run on a CPU and is 114 probe will fire instead. 118 probe fires when the scheduler is called upon to make a scheduling decision by 120 The arguments to this probe are the interrupted thread and its corresponding [all …]
|
H A D | dtrace_proc.4 | 48 probe fires when a user process is created via the 57 KPI will not trigger this probe. 60 probe's first two arguments are the new child process and its parent, 69 probe fires when a process attempts to execute a file. 73 probe will subsequently fire, providing the corresponding 78 probe will fire. 82 probe fires when a process exits or is terminated. 96 probe fires when a signal is about to be sent to a process. 99 probe fires when a signal is sent to a process that ignores it. 100 This probe will fire after the [all …]
|
/freebsd-src/sys/netinet/ |
H A D | sctp_kdtrace.h | 40 #define SCTP_PROBE1(probe, arg0) \ argument 41 SDT_PROBE1(sctp, , , probe, arg0) 42 #define SCTP_PROBE2(probe, arg0, arg1) \ argument 43 SDT_PROBE2(sctp, , , probe, arg0, arg1) 44 #define SCTP_PROBE3(probe, arg0, arg1, arg2) \ argument 45 SDT_PROBE3(sctp, , , probe, arg0, arg1, arg2) 46 #define SCTP_PROBE4(probe, arg0, arg1, arg2, arg3) \ argument 47 SDT_PROBE4(sctp, , , probe, arg0, arg1, arg2, arg3) 48 #define SCTP_PROBE5(probe, arg0, arg1, arg2, arg3, arg4) \ argument 49 SDT_PROBE5(sctp, , , probe, arg0, arg1, arg2, arg3, arg4) [all …]
|
/freebsd-src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/dtraceUtil/ |
H A D | man.TraceNames | 39 * RESULT: invalid probe specifier 43 * RESULT: invalid probe specifier 47 * RESULT: invalid probe specifier 51 * RESULT: trace of one probe with name BEGIN. 55 * RESULT: invalid probe specifier 59 * RESULT: invalid probe specifier 67 * RESULT: invalid probe specifier 80 * RESULT: invalid probe specifier 97 * RESULT: Count of mathching read probes and invalid probe specifier 102 * RESULT: invalid probe specifier [all …]
|
H A D | man.TraceModule | 39 * RESULT: invalid probe specifier 51 * RESULT: invalid probe specifier 59 * RESULT: invalid probe specifier 63 * RESULT: not a valid probe description. 72 * and an invalid probe specifier for foounix. 76 * RESULT: invalid probe specifier for foounix. 80 * RESULT: invalid probe description. 99 * RESULT: invalid probe specifier. 103 * RESULT: invalid probe specifier. 107 * RESULT: invalid probe specifier. [all …]
|
/freebsd-src/sys/cddl/contrib/opensolaris/uts/common/sys/ |
H A D | dtrace.h | 84 #define DTRACE_IDNONE 0 /* invalid probe identifier */ 85 #define DTRACE_EPIDNONE 0 /* invalid enabled probe identifier */ 101 typedef uint32_t dtrace_id_t; /* probe identifier */ 102 typedef uint32_t dtrace_epid_t; /* enabled probe identifier */ 234 #define DIF_VAR_EPID 0x0104 /* enabled probe ID */ 235 #define DIF_VAR_ID 0x0105 /* probe ID */ 248 #define DIF_VAR_PROBEPROV 0x0112 /* probe provider */ 249 #define DIF_VAR_PROBEMOD 0x0113 /* probe module */ 250 #define DIF_VAR_PROBEFUNC 0x0114 /* probe function */ 251 #define DIF_VAR_PROBENAME 0x0115 /* probe nam [all...] |
/freebsd-src/cddl/usr.sbin/dwatch/libexec/ |
H A D | sched | 12 ############################################################ PROBE 16 : ${PROBE:=sched:::} ;; 18 : ${PROBE:=sched:::off-cpu, sched:::on-cpu, sched:::remain-cpu} ;; 20 : ${PROBE:=sched:::sleep, sched:::wakeup} ;; 22 : ${PROBE:=sched:::change-pri, sched:::lend-pri} ;; 24 : ${PROBE:=sched:::dequeue, sched:::enqueue, sched:::load-change} ;; 26 : ${PROBE:=sched:::${PROFILE#sched-}} 37 $PROBE /* probe ID $ID */ 47 sched:::tick, sched:::wakeup /* probe ID $(( $ID + 1 )) */ 58 sched:::enqueue /* probe ID $(( $ID + 2 )) */ [all …]
|
H A D | proc | 12 ############################################################ PROBE 16 : ${PROBE:=$( echo \ 27 : ${PROBE:=$( echo \ 33 : ${PROBE:=$( echo \ 41 : ${PROBE:=proc:::${PROFILE#proc-}} 63 $PROBE /* probe ID $ID */ 69 proc:::create /* probe ID $(( $ID + 1 )) */ 81 proc:::exec /* probe ID $(( $ID + 2 )) */ 87 proc:::exec-failure /* probe ID $(( $ID + 3 )) */ 98 proc:::exec-success /* probe ID $(( $ID + 4 )) */ [all …]
|
H A D | vop_rename | 13 ############################################################ PROBE 15 : ${PROBE:=vfs:vop:$PROFILE:entry} 20 $PROBE /* probe ID $ID */ 76 $PROBE /this->fvp == 0 || this->ffi_fs == 0 || 78 this->ffi_name == ""/ /* probe ID $(( $ID + 1 )) */ 84 $PROBE /this->tvp == 0 || this->tfi_fs == 0 || 86 this->tfi_name == ""/ /* probe ID $(( $ID + 2 )) */ 94 $PROBE /this->fncp/ /* probe ID $(( $ID + 3 )) (depth 1) */ 104 $PROBE /this->tncp/ /* probe ID $(( $ID + 4 )) (depth 1) */ 114 $PROBE /this->fname1 == 0 || this->ffi_fs == 0 || [all …]
|
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | PseudoProbeInserter.cpp | 9 // This file implements PseudoProbeInserter pass, which inserts pseudo probe 10 // annotations for call instructions with a pseudo-probe-specific dwarf 12 // with a pseudo probe, and the discriminator value holds information to 25 #define DEBUG_TYPE "pseudo-probe-inserter" 38 StringRef getPassName() const override { return "Pseudo Probe Inserter"; } in getPassName() 82 // probe will be counted towards the probe. This logically equals to in runOnMachineFunction() 83 // treating the instruction next to a probe as if it is from the same in runOnMachineFunction() 84 // block of the probe. This is accurate most of the time unless the in runOnMachineFunction() 88 // there are still other native instructions preceding the probe we can in runOnMachineFunction() 89 // use them as a place holder to collect samples for the probe. in runOnMachineFunction() [all …]
|
/freebsd-src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/ |
H A D | tst.ProbeData.ksh.out | 1 [probe 1 pid$target:tst.ProbeData.exe:fN:entry [ 6 [probe 1 pid$target:tst.ProbeData.exe:fN:entry [ 11 [probe 2 pid$target:tst.ProbeData.exe:fN2:entry [ 16 [probe 1 pid$target:tst.ProbeData.exe:fN:entry [ 21 [probe 2 pid$target:tst.ProbeData.exe:fN2:entry [ 26 [probe 1 pid$target:tst.ProbeData.exe:fN:entry [ 31 [probe 1 pid$target:tst.ProbeData.exe:fN:entry [ 36 [probe 1 pid$target:tst.ProbeData.exe:fN:entry [ 41 [probe 1 pid$target:tst.ProbeData.exe:fN:entry [ 46 [probe 1 pid$target:tst.ProbeData.exe:fN:entry [
|
/freebsd-src/contrib/llvm-project/llvm/include/llvm/MC/ |
H A D | MCPseudoProbe.h | 1 //===- MCPseudoProbe.h - Pseudo probe encoding support ---------*- C++ -*-===// 10 // probe encoding for AutoFDO. Pseudo probes together with their inline context 26 // PROBE RECORDS 30 // 0 - block probe, 1 - indirect call, 2 - direct call 46 // ID of the callsite probe (ULEB128) 80 // If set, indicates that the probe is encoded as an address delta 155 /// Instances of this class represent a pseudo probe instance for a pseudo probe 167 assert(Type <= 0xFF && "Probe type too big to encode, exceeding 2^8"); in MCPseudoProbe() 169 "Probe attribute in MCPseudoProbe() 244 addProbes(ProbeType Probe) addProbes() argument 297 addPseudoProbe(MCSymbol * FuncSym,const MCPseudoProbe & Probe,const MCPseudoProbeInlineStack & InlineStack) addPseudoProbe() argument [all...] |
/freebsd-src/sys/cddl/contrib/opensolaris/uts/common/dtrace/ |
H A D | fasttrap.c | 120 * of tracepoints to enable. If a probe is activated, it adds its ID to 183 * Each time a probe is created, fasttrap_total is incremented by the number 184 * of tracepoints that may be associated with that probe; fasttrap_total is capped 754 fasttrap_tracepoint_enable(proc_t *p, fasttrap_probe_t *probe, uint_t index) in fasttrap_tracepoint_enable() argument 762 ASSERT(index < probe->ftp_ntps); in fasttrap_tracepoint_enable() 764 pid = probe->ftp_pid; in fasttrap_tracepoint_enable() 765 pc = probe->ftp_tps[index].fit_tp->ftt_pc; in fasttrap_tracepoint_enable() 766 id = &probe->ftp_tps[index].fit_id; in fasttrap_tracepoint_enable() 768 ASSERT(probe->ftp_tps[index].fit_tp->ftt_pid == pid); in fasttrap_tracepoint_enable() 776 * on the generation in which this probe was last modified. in fasttrap_tracepoint_enable() [all …]
|
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | SampleProfileProbe.h | 10 /// This file provides the interface for the pseudo probe implementation for 37 // Map from tuples of Probe id and inline stack hash code to distribution 44 // A pseudo probe verifier that can be run after each IR passes to detect the 45 // violation of updating probe factors. In principle, the sum of distribution 46 // factor for a probe should be identical before and after a pass. For a 47 // function pass, the factor sum for a probe would be typically 100%. 105 /// Map basic blocks to the their pseudo probe ids. 108 /// Map indirect calls to the their pseudo probe ids. 111 /// The ID of the last probe, Can be used to number a new probe [all...] |
/freebsd-src/cddl/contrib/opensolaris/cmd/dtrace/ |
H A D | dtrace.1 | 51 .Op Fl i Ar probe-id Oo Oo Ar predicate Oc Ar action Oc 66 Options that enable probes directly using any of the probe description 203 conditional clause in a probe body is replaced at compile-time by a separate 204 probe predicated on the original condition. 236 The corresponding argument can include any of the probe description forms 241 Unspecified probe description fields are left blank and match any probes 250 argument can be suffixed with an optional D probe clause. 256 Function entry probe reports are indented and their output is prefixed with 258 Function return probe reports are unindented and their output is prefixed with 260 System call entry probe reports are indented and their output is prefixed with [all …]
|