MCPcopy Create free account

hub / github.com/anelson/tracers / functions

Functions379 in github.com/anelson/tracers

↓ 1 callersMethodgenerate_add_probe_call
When building a provider, individual probes are added by calling `add_probe` on the `ProviderBuilder` implementation. This method generates that call
tracers-codegen/src/gen/dynamic/provider_trait.rs:450
↓ 1 callersMethodgenerate_define_provider_call
A `Provider` is built by calling `define_provider` on a `Tracer` implementation. `define_provider` takes a closure and passes a `ProviderBuilder` para
tracers-codegen/src/gen/dynamic/provider_trait.rs:239
↓ 1 callersMethodgenerate_impl_mod
(&self)
tracers-codegen/src/gen/static/provider_trait.rs:159
↓ 1 callersMethodgenerate_impl_mod
The implementation of the probing logic is complex enough that it involves the declaration of a few variables and one new struct type. All of this is
tracers-codegen/src/gen/dynamic/provider_trait.rs:141
↓ 1 callersFunctiongenerate_native_code
( build_info: &BuildInfo, stdout: &mut dyn Write, manifest_dir: &Path, out_dir: &Path, _pa
tracers-codegen/src/gen/static/native_code/mod.rs:74
↓ 1 callersMethodgenerate_native_code
( &self, stdout: &mut dyn Write, manifest_dir: &Path, out_dir: &Path,
tracers-codegen/src/gen/static/mod.rs:60
↓ 1 callersMethodgenerate_native_declaration
Generates the declaration for the "native" C++ functions which fire the probes using whatever the platform's tracing system is. Depending upon the ta
tracers-codegen/src/gen/static/provider_trait.rs:416
↓ 1 callersMethodgenerate_native_is_enabled
Generates something which indicates if the probe is enabled or not. In some cases it's a static `u16`, in others it's a function that returns a bool.
tracers-codegen/src/gen/static/provider_trait.rs:504
↓ 1 callersMethodgenerate_native_probe_func
Generates just the "native" (in the `Disabled` or `NoOp` case it's actually just an empty Rust function) function that fires the probe
tracers-codegen/src/gen/static/provider_trait.rs:429
↓ 1 callersFunctiongenerate_probe_args_impl
(type_params: &Vec<String>)
tracers-core/build.rs:64
↓ 1 callersFunctiongenerate_probe_call
( build_info: &BuildInfo, call: ProbeCallSpecification, )
tracers-codegen/src/gen/static/probe_call.rs:14
↓ 1 callersFunctiongenerate_probe_call
Translates what looks to be an explicit call to the associated function corresponding to a probe on a provider trait, into something which at runtime
tracers-codegen/src/gen/dynamic/probe_call.rs:36
↓ 1 callersMethodgenerate_probe_method_body
( &self, provider: &ProviderTraitGenerator, )
tracers-codegen/src/gen/static/provider_trait.rs:328
↓ 1 callersFunctiongenerate_probe_tests
()
tracers-core/build.rs:318
↓ 1 callersMethodgenerate_provider_struct_type_params
The provider struct we declare to hold the probe objects needs to take a lot of type parameters. One type, 'a, which corresponds to the lifetime para
tracers-codegen/src/gen/dynamic/provider_trait.rs:274
↓ 1 callersMethodgenerate_rust_is_enabled
Some tracing implementations will use a C++ native function that tests if a probe is enabled or not. Others use a static variable that the Rust code
tracers-codegen/src/gen/static/provider_trait.rs:570
↓ 1 callersFunctiongenerate_source_file
(provider: &ProviderSpecification, abs_path: PathBuf)
tracers-codegen/src/gen/static/c.rs:98
↓ 1 callersFunctiongenerate_stap_native_impl
()
tracers-dyn-noop/build.rs:41
↓ 1 callersFunctiongenerate_stap_native_impl
()
tracers-dyn-stap/build.rs:85
↓ 1 callersMethodgenerate_struct_member_initialization
When we create a new instance of the struct which represents the provider and holds the `ProviderProbe` objects for all of the probes, each of those m
tracers-codegen/src/gen/dynamic/provider_trait.rs:515
↓ 1 callersFunctiongenerate_test_unsafe_probe_impl
Generates a test-only implementation of UnsafeProviderProbeImpl which passes its parameters to `sprintf` and exposes the resulting string as a Rust st
tracers-core/build.rs:256
↓ 1 callersFunctiongenerate_tests
This doesn't generate ALL test code, but it generates some test helpers that the `probes` module will use.
tracers-core/build.rs:245
↓ 1 callersMethodgenerate_tracer_struct
A provider is described by the user as a `trait`, with methods corresponding to probes. However it's actually implemented as a `struct` with no member
tracers-codegen/src/gen/static/provider_trait.rs:105
↓ 1 callersMethodgenerate_tracer_struct
A provider is described by the user as a `trait`, with methods corresponding to probes. However it's actually implemented as a `struct` with no member
tracers-codegen/src/gen/dynamic/provider_trait.rs:69
↓ 1 callersMethodgenerate_trait_methods
( &self, provider: &ProviderTraitGenerator, )
tracers-codegen/src/gen/static/provider_trait.rs:283
↓ 1 callersMethodgenerate_trait_methods
For each probe the user defines on the trait, we will generate multiple implementation methods: `(probe_name)` - This is the same name as the method
tracers-codegen/src/gen/dynamic/provider_trait.rs:346
↓ 1 callersFunctiongenerate_unsafe_provider_probe_impl_trait
This generates the declaration of the `UnsafeProviderProbeImpl` trait. This trait implements tracing for implementations that will operate on Rust ty
tracers-core/build.rs:97
↓ 1 callersFunctiongenerate_unsafe_provider_probe_native_impl_trait
This generates the declaration of the `UnsafeProviderProbeNativeImpl` trait. This trait provides an implementation of `UnsafeProviderProbeImpl`, whic
tracers-core/build.rs:147
↓ 1 callersFunctionget_arg_from_test_case
(case: &TestCase)
tracers-codegen/src/spec/probe_arg.rs:282
↓ 1 callersMethodget_probe_unsafe
Look up the probe by its definition (that is, name and arg types)
tracers-dyn-noop/src/provider.rs:35
↓ 1 callersMethodget_provider_impl_struct_var_name
The name of the static variable which contains the singleton instance of the provider struct, eg MYPROBESPROVIDERIMPL
tracers-codegen/src/gen/dynamic/provider_trait.rs:291
↓ 1 callersMethodget_provider_instance_var_name
The name of the static variable which contains the singleton instance of the underlying tracing system's `Provider` instance, eg MYPROBESPROVIDER
tracers-codegen/src/gen/dynamic/provider_trait.rs:300
↓ 1 callersMethodget_rust_type_str
Gets a string containing the Rust type corresponding to the native C type. This also is used for generating code. It corresponds directly to the typ
tracers-codegen/src/argtypes.rs:134
↓ 1 callersFunctionget_test_cases
()
tracers-codegen/src/spec/probe_arg.rs:271
↓ 1 callersFunctionget_test_probe_calls
()
tracers-codegen/src/testdata.rs:617
↓ 1 callersFunctionget_type_param_names
(args: usize)
tracers-dyn-noop/build.rs:21
↓ 1 callersFunctionget_type_param_names
(args: usize)
tracers-dyn-stap/build.rs:65
↓ 1 callersMethodhandle_init_provider
(&self, init: ProviderInitSpecification)
tracers-codegen/src/gen/static/mod.rs:56
↓ 1 callersMethodhandle_probe_call
(&self, call: ProbeCallSpecification)
tracers-codegen/src/gen/static/mod.rs:52
↓ 1 callersMethodhandle_provider_trait
(&self, provider: ProviderSpecification)
tracers-codegen/src/gen/static/mod.rs:46
↓ 1 callersMethodhas_native_enabled_func
(&self)
tracers-codegen/src/lib.rs:65
↓ 1 callersFunctionhash_buf
(buf: &[u8])
tracers-codegen/src/hashing.rs:16
↓ 1 callersFunctioninit_provider_impl
(tokens: TokenStream)
tracers-codegen/src/proc_macros.rs:54
↓ 1 callersMethodinto_syn_error
Converts this error type into a `syn::Error`, preserving context from spans and elements if any were given
tracers-codegen/src/error.rs:237
↓ 1 callersFunctioninvalid_test_cases
Produces an assortment of invalid probe methods, all of which should be rejected by the `from_method` constructor for various reasons
tracers-codegen/src/spec/probe.rs:177
↓ 1 callersFunctionis_enabled
()
tracers-libstapsdt-sys/build.rs:12
↓ 1 callersFunctionis_enabled
()
tracers-libelf-sys/build.rs:19
↓ 1 callersFunctionis_enabled
()
tracers-dyn-stap/build.rs:12
↓ 1 callersFunctionis_root
()
tracers/benches/probe_firing.rs:172
↓ 1 callersMethodis_static
(&self)
tracers-codegen/src/lib.rs:112
↓ 1 callersMethodload
Loads the provider into the process, making the probes available for firing
tracers-dyn-stap/src/provider.rs:189
↓ 1 callersFunctionmake_tuple_type
(type_params: &Vec<String>)
tracers-core/build.rs:41
↓ 1 callersFunctionparse
(source_path: &Path)
tracers-codegen/src/deps.rs:113
↓ 1 callersFunctionprobe_impl
Translates what looks to be an explicit call to the associated function corresponding to a probe on a provider trait, into something which at runtime
tracers-codegen/src/proc_macros.rs:50
↓ 1 callersMethodprobe_var_name
The name of the variable in the implementation struct which will hold this particular probe's `ProviderProbe` wrapper object
tracers-codegen/src/gen/dynamic/provider_trait.rs:325
↓ 1 callersFunctionrun
(cmd: &mut Command, program: &str)
tracers-libstapsdt-sys/build.rs:133
↓ 1 callersMethodsave
(&self)
tracers-codegen/src/build_rs.rs:152
↓ 1 callersFunctionselect_implementation
Selects a `tracers` implementation given a set of feature flags specified by the user
tracers-codegen/src/build_rs.rs:346
↓ 1 callersFunctionsomething
()
tracers-codegen/testdata/simplebin/src/child_module.rs:1
↓ 1 callersFunctiontracer_impl
Actual implementation of the macro logic, factored out of the proc macro itself so that it's more testable
tracers-codegen/src/proc_macros.rs:61
↓ 1 callersFunctiontry_build
()
tracers-libstapsdt-sys/build.rs:49
↓ 1 callersFunctiontry_build
()
tracers-libelf-sys/build.rs:54
↓ 1 callersFunctiontry_build
()
tracers-dyn-stap/build.rs:51
↓ 1 callersMethodunset
(&mut self)
tracers-codegen/src/testdata.rs:56
↓ 1 callersFunctionvalid_test_cases
Produces an assortment of valid probe methods, all of which should be accepted by the `from_method` constructor
tracers-codegen/src/spec/probe.rs:166
↓ 1 callersFunctionxform_types_i
( type_params: &Vec<String>, mut f: F, )
tracers-dyn-noop/build.rs:30
Function__dtrace
tracers/src/bin/stap_probes.o.dtrace-temp.c:4
Function_enabled
tracers-codegen/templates/lttng/provider_wrapper.cpp:34
Functionadd_lifetimes
()
tracers-codegen/src/syn_helpers.rs:204
Methodadd_lifetimes_to_syn_type
Re-writes an argument's type information, annotating all references with unique lifetimes Probe function arguments very often will include reference
tracers-codegen/src/spec/probe_arg.rs:179
Methodadd_probe
(&mut self, _name: &'static str)
tracers-dyn-noop/src/provider.rs:16
Functionas_c_type
()
tracers-core/src/argtypes/bool.rs:23
Methodas_c_type
(&self)
tracers-core/src/argtypes/option.rs:42
Methodas_c_type
(&self)
tracers-core/src/argtypes/pointer.rs:14
Methodas_c_type
(&self)
tracers-core/src/argtypes/bool.rs:13
Functionbench_fire_disabled
(c: &mut Criterion)
tracers/benches/probe_firing.rs:149
Functionbench_fire_enabled
(c: &mut Criterion)
tracers/benches/probe_firing.rs:153
Functionbench_int_arg1
(b: &mut Bencher, _arg: &())
tracers/benches/probe_firing.rs:57
Functionbench_int_arg12
(b: &mut Bencher, _arg: &())
tracers/benches/probe_firing.rs:84
Functionbench_int_arg3
(b: &mut Bencher, _arg: &())
tracers/benches/probe_firing.rs:61
Functionbench_int_arg6
(b: &mut Bencher, _arg: &())
tracers/benches/probe_firing.rs:71
Functionbench_no_args
(b: &mut Bencher, _arg: &())
tracers/benches/probe_firing.rs:53
Functionbench_string_arg1
(b: &mut Bencher, _arg: &())
tracers/benches/probe_firing.rs:103
Functionbench_string_arg12
(b: &mut Bencher, _arg: &())
tracers/benches/probe_firing.rs:130
Functionbench_string_arg3
(b: &mut Bencher, _arg: &())
tracers/benches/probe_firing.rs:107
Functionbench_string_arg6
(b: &mut Bencher, _arg: &())
tracers/benches/probe_firing.rs:117
Methodbuild
(self, _name: &str)
tracers-dyn-noop/src/provider.rs:20
Methodbuild_dir
(&self)
tracers-codegen/src/gen/static/native_code/mod.rs:40
Methodbuild_info
(&self)
tracers-codegen/src/gen/static/provider_trait.rs:33
Methodbuild_info
(&self)
tracers-codegen/src/gen/dynamic/provider_trait.rs:26
Methodbuild_info_read_error
(build_info_path: PathBuf, e: Error)
tracers-codegen/src/error.rs:184
Methodbuild_info_write_error
(build_info_path: PathBuf, e: Error)
tracers-codegen/src/error.rs:195
Functionbuild_rs_workflow_tests
()
tracers-codegen/src/build_rs.rs:463
Functionc_and_back_again
Convert a Rust string to a CString and then back again. Some of the Quickcheck strings contains NULLs and thus fail this test and convert back as emp
tracers-core/src/dynamic.rs:202
Functioncaches_file_results
()
tracers-codegen/src/cache.rs:210
Functioncaches_generated_data
()
tracers-codegen/src/cache.rs:350
Functioncaches_objects_results
()
tracers-codegen/src/cache.rs:285
Functioncaches_results
()
tracers-codegen/src/gen/static/native_code/mod.rs:281
Methodcode_generation_error
(message: S)
tracers-codegen/src/error.rs:219
Functioncstring_to_cstring
(x: String)
tracers-core/src/argtypes/cstring.rs:44
← previousnext →101–200 of 379, ranked by callers