Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anelson/tracers
/ functions
Functions
379 in github.com/anelson/tracers
⨍
Functions
379
◇
Types & classes
156
Method
darling_error
(e: DarlingError)
tracers-codegen/src/error.rs:152
Function
decorates_args_with_lifetime_params
()
tracers-codegen/src/spec/probe.rs:224
Method
default_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
Method
define_provider
( _name: &str, f: impl FnOnce(Self::ProviderBuilderType) -> Fallible<Self::ProviderBuilderType
tracers-dyn-noop/src/tracer.rs:20
Method
define_provider
( name: &str, f: impl FnOnce(Self::ProviderBuilderType) -> Fallible<Self::ProviderBuilderType>
tracers-dyn-stap/src/tracer.rs:18
Function
deserialize
( d: D, )
tracers-codegen/src/serde_helpers.rs:25
Method
drop
(&mut self)
tracers-codegen/src/testdata.rs:62
Method
drop
(&mut self)
tracers-dyn-stap/src/provider.rs:241
Method
drop
(&mut self)
tracers-dyn-stap/src/tracer.rs:31
Function
elf_version_is_correct
()
tracers-libelf-sys/src/lib.rs:14
Method
eq
(&self, other: &TracersError)
tracers-codegen/src/error.rs:104
Method
eq
(&self, other: &ProbeArgSpecification)
tracers-codegen/src/spec/probe_arg.rs:218
Method
eq
(&self, other: &ProbeSpecification)
tracers-codegen/src/spec/probe.rs:128
Method
eq
(&self, other: &ProviderSpecification)
tracers-codegen/src/spec/provider.rs:380
Method
error_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
Method
error_string
clippy's proposed alterstatic won't compile here
tracers-codegen/src/error.rs:291
Function
expected_impl
()
tracers/tests/simple.rs:20
Method
fail_string
clippy's proposed alterstatic won't compile here
tracers-codegen/src/error.rs:297
Function
falls_back_to_disabled_on_error
()
tracers-codegen/src/gen/static/provider_trait.rs:710
Function
file_name_generation
()
tracers-codegen/src/hashing.rs:73
Function
find_probes_fails_with_invalid_traits
()
tracers-codegen/src/spec/provider.rs:442
Function
find_probes_succeeds_with_valid_traits
()
tracers-codegen/src/spec/provider.rs:469
Function
find_providers_finds_valid_traits
()
tracers-codegen/src/spec/provider.rs:420
Function
find_providers_ignores_invalid_traits
()
tracers-codegen/src/spec/provider.rs:402
Method
fmt
(&self, f: &mut fmt::Formatter)
tracers-codegen/src/testdata.rs:169
Method
fmt
(&self, f: &mut fmt::Formatter)
tracers-codegen/src/error.rs:83
Method
fmt
(&self, f: &mut fmt::Formatter)
tracers-codegen/src/spec/probe_arg.rs:35
Method
fmt
(&self, f: &mut fmt::Formatter)
tracers-codegen/src/spec/init_provider.rs:31
Method
fmt
(&self, f: &mut fmt::Formatter)
tracers-codegen/src/spec/probe.rs:33
Method
fmt
(&self, f: &mut fmt::Formatter)
tracers-codegen/src/spec/provider.rs:155
Method
fmt
(&self, f: &mut fmt::Formatter)
tracers-codegen/src/spec/probe_call.rs:73
Function
foo
()
tracers-codegen/testdata/errors/tests/compile_errors.rs:3
Function
found_providers_have_same_hash
()
tracers-codegen/src/spec/provider.rs:483
Method
from
(failure: failure::Context<D>)
tracers-codegen/src/error.rs:306
Method
from_attribute
Parse the attribute args from an already-parsed `syn::Attribute`.
tracers-codegen/src/spec/provider.rs:67
Method
from_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
Method
from_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
Method
from_fnarg
( probe_method: &syn::TraitItemMethod, ordinal: usize, arg: &syn::FnArg, )
tracers-codegen/src/spec/probe_arg.rs:46
Method
from_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
Method
from_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
Method
from_path
(path: syn::Path)
tracers-codegen/src/spec/init_provider.rs:52
Method
from_probe_spec
( provider: &'b ProviderSpecification, probe: &'b ProbeSpecification, )
tracers-codegen/src/gen/static/c.rs:70
Method
from_provider_spec
(provider: &'b ProviderSpecification)
tracers-codegen/src/gen/static/c.rs:45
Method
from_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
Method
from_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
Method
from_token_stream
(tokens: TokenStream)
tracers-codegen/src/spec/probe_call.rs:47
Method
from_trait
( crate_name: &str, attr: TracerAttribute, item_trait: ItemTrait, )
tracers-codegen/src/spec/provider.rs:208
Method
generate_lifetime
( probe_name: &str, arg_name: &str, syn_typ: &syn::Type, count
tracers-codegen/src/spec/probe_arg.rs:184
Method
generate_native_code
( &self, stdout: &mut dyn Write, _manifest_dir: &Path, _out_dir: &Path,
tracers-codegen/src/gen/dynamic/mod.rs:50
Function
generate_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
Method
generate_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
Function
generate_works_on_valid_traits
()
tracers-codegen/src/gen/static/provider_trait.rs:674
Function
generate_works_on_valid_traits
()
tracers-codegen/src/gen/dynamic/provider_trait.rs:543
Method
generate_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
Function
generates_processed_provider_trait
()
tracers-codegen/src/gen/static/native_code/mod.rs:364
Method
get_arg_type
Translates from the `tracers-core` `CType` enum to the constants used by libstapsdt
tracers-dyn-stap/src/provider.rs:203
Method
get_build_path
()
tracers-codegen/src/build_rs.rs:172
Method
get_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
Method
get_c_type_str
()
tracers-core/src/argtypes.rs:85
Method
get_calls
(&self)
tracers-core/src/dynamic.rs:193
Function
get_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
Method
get_probe
( &self, name: &'static str, )
tracers-core/src/dynamic.rs:42
Method
get_probe_unsafe
Look up the probe by its definition (that is, name and arg types)
tracers-dyn-stap/src/provider.rs:225
Function
gets_correct_targets
()
tracers-codegen/src/cargo.rs:35
Method
handle_init_provider
(&self, init: ProviderInitSpecification)
tracers-codegen/src/gen/dynamic/mod.rs:46
Method
handle_probe_call
(&self, call: ProbeCallSpecification)
tracers-codegen/src/gen/dynamic/mod.rs:42
Method
handle_provider_trait
(&self, provider: ProviderSpecification)
tracers-codegen/src/gen/dynamic/mod.rs:36
Function
hash_equality
()
tracers-codegen/src/hashing.rs:63
Function
hash_inequality
()
tracers-codegen/src/hashing.rs:68
Method
ident
(&self)
tracers-codegen/src/spec/probe_arg.rs:101
Function
identity_function
()
tracers-codegen/src/syn_helpers.rs:190
Function
init_provider
(input: CompilerTokenStream)
tracers-macros-hack/src/lib.rs:20
Method
invalid_call_expression
( message: impl AsRef<str>, element: T, )
tracers-codegen/src/error.rs:161
Method
invalid_provider
(message: impl AsRef<str>, element: T)
tracers-codegen/src/error.rs:112
Method
is_dynamic
(&self)
tracers-codegen/src/lib.rs:108
Method
is_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
Method
is_enabled
(&self)
tracers-dyn-stap/src/probe.rs:15
Method
is_feature_enabled
(name: &str)
tracers-codegen/src/build_rs.rs:116
Method
is_tracer_attribute
(attr: &syn::Attribute)
tracers-codegen/src/spec/provider.rs:298
Function
it_works
()
tracers-codegen/testdata/complexlib/src/lib.rs:15
Function
it_works
()
tracers-codegen/testdata/simplelib/src/lib.rs:11
Method
load
()
tracers-codegen/src/build_rs.rs:141
Function
load_cached_results
(results_path: &Path)
tracers-codegen/src/cache.rs:151
Method
log_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
Function
main
Custom build logic that uses the features enabled by the dependent crate to determine which tracing implementation to compile with
tracers/build.rs:4
Function
main
()
tracers/src/bin/testfire.rs:110
Function
main
()
tracers/src/bin/profile_target.rs:20
Function
main
()
tracers/examples/simple.rs:12
Function
main
()
tracers/examples/submodules.rs:33
Function
main
()
tracers-dyn-noop/build.rs:11
Function
main
()
tracers-libstapsdt-sys/build.rs:20
Function
main
tracers-libstapsdt-sys/src/test-libstapsdt.c:6
Function
main
()
tracers-core/build.rs:17
Function
main
()
tracers-libelf-sys/build.rs:27
Function
main
()
tracers-codegen/testdata/complexlib/build.rs:1
Function
main
()
tracers-codegen/testdata/complexlib/src/bin/bin2.rs:4
Function
main
()
tracers-codegen/testdata/complexlib/src/bin/bin1.rs:4
Function
main
()
tracers-codegen/testdata/errors/src/main.rs:3
Function
main
()
tracers-codegen/testdata/simplebin/src/main.rs:3
Function
main
()
tracers-codegen/testdata/simplelib/build.rs:1
← previous
next →
201–300 of 379, ranked by callers