MCPcopy Create free account

hub / github.com/anelson/tracers / functions

Functions379 in github.com/anelson/tracers

Methoddarling_error
(e: DarlingError)
tracers-codegen/src/error.rs:152
Functiondecorates_args_with_lifetime_params
()
tracers-codegen/src/spec/probe.rs:224
Methoddefault_c_value
This is ugly but unavoidable. The underlying C type for an Opt<T> is the same C type as T. We will use the default value for T to indicate a value of
tracers-core/src/argtypes.rs:127
Methoddefine_provider
( _name: &str, f: impl FnOnce(Self::ProviderBuilderType) -> Fallible<Self::ProviderBuilderType
tracers-dyn-noop/src/tracer.rs:20
Methoddefine_provider
( name: &str, f: impl FnOnce(Self::ProviderBuilderType) -> Fallible<Self::ProviderBuilderType>
tracers-dyn-stap/src/tracer.rs:18
Functiondeserialize
( d: D, )
tracers-codegen/src/serde_helpers.rs:25
Methoddrop
(&mut self)
tracers-codegen/src/testdata.rs:62
Methoddrop
(&mut self)
tracers-dyn-stap/src/provider.rs:241
Methoddrop
(&mut self)
tracers-dyn-stap/src/tracer.rs:31
Functionelf_version_is_correct
()
tracers-libelf-sys/src/lib.rs:14
Methodeq
(&self, other: &TracersError)
tracers-codegen/src/error.rs:104
Methodeq
(&self, other: &ProbeArgSpecification)
tracers-codegen/src/spec/probe_arg.rs:218
Methodeq
(&self, other: &ProbeSpecification)
tracers-codegen/src/spec/probe.rs:128
Methodeq
(&self, other: &ProviderSpecification)
tracers-codegen/src/spec/provider.rs:380
Methoderror_as_syn_error
Given a `failure` `Error` type, tests to see if it wraps a real `syn::Error`, and if it doesn't, creates a `syn::Error` with the same message
tracers-codegen/src/error.rs:280
Methoderror_string
clippy's proposed alterstatic won't compile here
tracers-codegen/src/error.rs:291
Functionexpected_impl
()
tracers/tests/simple.rs:20
Methodfail_string
clippy's proposed alterstatic won't compile here
tracers-codegen/src/error.rs:297
Functionfalls_back_to_disabled_on_error
()
tracers-codegen/src/gen/static/provider_trait.rs:710
Functionfile_name_generation
()
tracers-codegen/src/hashing.rs:73
Functionfind_probes_fails_with_invalid_traits
()
tracers-codegen/src/spec/provider.rs:442
Functionfind_probes_succeeds_with_valid_traits
()
tracers-codegen/src/spec/provider.rs:469
Functionfind_providers_finds_valid_traits
()
tracers-codegen/src/spec/provider.rs:420
Functionfind_providers_ignores_invalid_traits
()
tracers-codegen/src/spec/provider.rs:402
Methodfmt
(&self, f: &mut fmt::Formatter)
tracers-codegen/src/testdata.rs:169
Methodfmt
(&self, f: &mut fmt::Formatter)
tracers-codegen/src/error.rs:83
Methodfmt
(&self, f: &mut fmt::Formatter)
tracers-codegen/src/spec/probe_arg.rs:35
Methodfmt
(&self, f: &mut fmt::Formatter)
tracers-codegen/src/spec/init_provider.rs:31
Methodfmt
(&self, f: &mut fmt::Formatter)
tracers-codegen/src/spec/probe.rs:33
Methodfmt
(&self, f: &mut fmt::Formatter)
tracers-codegen/src/spec/provider.rs:155
Methodfmt
(&self, f: &mut fmt::Formatter)
tracers-codegen/src/spec/probe_call.rs:73
Functionfoo
()
tracers-codegen/testdata/errors/tests/compile_errors.rs:3
Functionfound_providers_have_same_hash
()
tracers-codegen/src/spec/provider.rs:483
Methodfrom
(failure: failure::Context<D>)
tracers-codegen/src/error.rs:306
Methodfrom_attribute
Parse the attribute args from an already-parsed `syn::Attribute`.
tracers-codegen/src/spec/provider.rs:67
Methodfrom_call_expression
Parses a single expression which should be a call to the probe function. This implies that the probe call is `FireOnly`, since a block of code would
tracers-codegen/src/spec/probe_call.rs:104
Methodfrom_env
Read the feature flags from the environment variables set by Cargo at build time. Fails with an error if the combination of features is not valid
tracers-codegen/src/build_rs.rs:35
Methodfrom_fnarg
( probe_method: &syn::TraitItemMethod, ordinal: usize, arg: &syn::FnArg, )
tracers-codegen/src/spec/probe_arg.rs:46
Methodfrom_ident_type_pair
Constructs a `ProbeArgSpecification` from information from a decomposed fn arg once it's been validated that the arg is in the expected `name: type` f
tracers-codegen/src/spec/probe_arg.rs:68
Methodfrom_method
Given a trait method, compute the probe that corresponds to that method. If the method isn't suitable for use as a probe method, returns an error Pro
tracers-codegen/src/spec/probe.rs:57
Methodfrom_path
(path: syn::Path)
tracers-codegen/src/spec/init_provider.rs:52
Methodfrom_probe_spec
( provider: &'b ProviderSpecification, probe: &'b ProbeSpecification, )
tracers-codegen/src/gen/static/c.rs:70
Methodfrom_provider_spec
(provider: &'b ProviderSpecification)
tracers-codegen/src/gen/static/c.rs:45
Methodfrom_token_stream
Parses a token stream directly from the compiler, decomposing it into the details of the provider
tracers-codegen/src/spec/init_provider.rs:45
Methodfrom_token_stream
Parse the attribute args from a token stream. NB: This only works with the token stream provided to an attribute-like proc macro. The assumption i
tracers-codegen/src/spec/provider.rs:62
Methodfrom_token_stream
(tokens: TokenStream)
tracers-codegen/src/spec/probe_call.rs:47
Methodfrom_trait
( crate_name: &str, attr: TracerAttribute, item_trait: ItemTrait, )
tracers-codegen/src/spec/provider.rs:208
Methodgenerate_lifetime
( probe_name: &str, arg_name: &str, syn_typ: &syn::Type, count
tracers-codegen/src/spec/probe_arg.rs:184
Methodgenerate_native_code
( &self, stdout: &mut dyn Write, _manifest_dir: &Path, _out_dir: &Path,
tracers-codegen/src/gen/dynamic/mod.rs:50
Functiongenerate_provider_funcs
Given a tracing provider, generates the (C/C++) code to wrap the probes in a Rust-callable C form. On success, returns the path to the generated sour
tracers-codegen/src/gen/static/c.rs:18
Methodgenerate_struct_member_declaration
Generates the declaration of the member field within the provider implementation struct that holds the `ProviderProbe` instance for this probe. It's
tracers-codegen/src/gen/dynamic/provider_trait.rs:489
Functiongenerate_works_on_valid_traits
()
tracers-codegen/src/gen/static/provider_trait.rs:674
Functiongenerate_works_on_valid_traits
()
tracers-codegen/src/gen/dynamic/provider_trait.rs:543
Methodgenerate_wrapper_func
For the `Disabled` target, each probe will have a corresponding wrapper function called `__$PROBENAME_wrap` which takes as input all of the probe's Ru
tracers-codegen/src/gen/static/provider_trait.rs:601
Functiongenerates_processed_provider_trait
()
tracers-codegen/src/gen/static/native_code/mod.rs:364
Methodget_arg_type
Translates from the `tracers-core` `CType` enum to the constants used by libstapsdt
tracers-dyn-stap/src/provider.rs:203
Methodget_build_path
()
tracers-codegen/src/build_rs.rs:172
Methodget_c_type_enum
Gets the `CType` enum which corresponds to the C data type which is used to represent this type when calling probes
tracers-codegen/src/argtypes.rs:113
Methodget_c_type_str
()
tracers-core/src/argtypes.rs:85
Methodget_calls
(&self)
tracers-core/src/dynamic.rs:193
Functionget_ctype
Internal helper func used by the generated implementation to evaluate a probe arg type to its corresponding CType enum value
tracers-core/src/dynamic.rs:138
Methodget_probe
( &self, name: &'static str, )
tracers-core/src/dynamic.rs:42
Methodget_probe_unsafe
Look up the probe by its definition (that is, name and arg types)
tracers-dyn-stap/src/provider.rs:225
Functiongets_correct_targets
()
tracers-codegen/src/cargo.rs:35
Methodhandle_init_provider
(&self, init: ProviderInitSpecification)
tracers-codegen/src/gen/dynamic/mod.rs:46
Methodhandle_probe_call
(&self, call: ProbeCallSpecification)
tracers-codegen/src/gen/dynamic/mod.rs:42
Methodhandle_provider_trait
(&self, provider: ProviderSpecification)
tracers-codegen/src/gen/dynamic/mod.rs:36
Functionhash_equality
()
tracers-codegen/src/hashing.rs:63
Functionhash_inequality
()
tracers-codegen/src/hashing.rs:68
Methodident
(&self)
tracers-codegen/src/spec/probe_arg.rs:101
Functionidentity_function
()
tracers-codegen/src/syn_helpers.rs:190
Functioninit_provider
(input: CompilerTokenStream)
tracers-macros-hack/src/lib.rs:20
Methodinvalid_call_expression
( message: impl AsRef<str>, element: T, )
tracers-codegen/src/error.rs:161
Methodinvalid_provider
(message: impl AsRef<str>, element: T)
tracers-codegen/src/error.rs:112
Methodis_dynamic
(&self)
tracers-codegen/src/lib.rs:108
Methodis_enabled
Indicates if this probe is currently enabled; that is, if there are one or more processes monitoring this probe. This call should be very fast, in ma
tracers-core/src/dynamic.rs:78
Methodis_enabled
(&self)
tracers-dyn-stap/src/probe.rs:15
Methodis_feature_enabled
(name: &str)
tracers-codegen/src/build_rs.rs:116
Methodis_tracer_attribute
(attr: &syn::Attribute)
tracers-codegen/src/spec/provider.rs:298
Functionit_works
()
tracers-codegen/testdata/complexlib/src/lib.rs:15
Functionit_works
()
tracers-codegen/testdata/simplelib/src/lib.rs:11
Methodload
()
tracers-codegen/src/build_rs.rs:141
Functionload_cached_results
(results_path: &Path)
tracers-codegen/src/cache.rs:151
Methodlog_call
Called internally when the `buffer` member has been filled with a new string with `snprintf`. Convert that into a Rust string and add it to the `calls
tracers-core/src/dynamic.rs:184
Functionmain
Custom build logic that uses the features enabled by the dependent crate to determine which tracing implementation to compile with
tracers/build.rs:4
Functionmain
()
tracers/src/bin/testfire.rs:110
Functionmain
()
tracers/src/bin/profile_target.rs:20
Functionmain
()
tracers/examples/simple.rs:12
Functionmain
()
tracers/examples/submodules.rs:33
Functionmain
()
tracers-dyn-noop/build.rs:11
Functionmain
()
tracers-libstapsdt-sys/build.rs:20
Functionmain
tracers-libstapsdt-sys/src/test-libstapsdt.c:6
Functionmain
()
tracers-core/build.rs:17
Functionmain
()
tracers-libelf-sys/build.rs:27
Functionmain
()
tracers-codegen/testdata/complexlib/build.rs:1
Functionmain
()
tracers-codegen/testdata/complexlib/src/bin/bin2.rs:4
Functionmain
()
tracers-codegen/testdata/complexlib/src/bin/bin1.rs:4
Functionmain
()
tracers-codegen/testdata/errors/src/main.rs:3
Functionmain
()
tracers-codegen/testdata/simplebin/src/main.rs:3
Functionmain
()
tracers-codegen/testdata/simplelib/build.rs:1
← previousnext →201–300 of 379, ranked by callers