Linux Perf
demangle-rust.c File Reference
#include <string.h>
#include "util.h"
#include "debug.h"
#include "demangle-rust.h"
Include dependency graph for demangle-rust.c:

Go to the source code of this file.

Functions

static bool is_prefixed_hash (const char *start)
 
static bool looks_like_rust (const char *sym, size_t len)
 
static bool unescape (const char **in, char **out, const char *seq, char value)
 
bool rust_is_mangled (const char *sym)
 
void rust_demangle_sym (char *sym)
 

Variables

static const char * hash_prefix = "::h"
 
static const size_t hash_prefix_len = 3
 
static const size_t hash_len = 16
 

Function Documentation

◆ is_prefixed_hash()

static bool is_prefixed_hash ( const char *  start)
static

Definition at line 101 of file demangle-rust.c.

Here is the call graph for this function:

◆ looks_like_rust()

static bool looks_like_rust ( const char *  sym,
size_t  len 
)
static

Definition at line 130 of file demangle-rust.c.

◆ rust_demangle_sym()

void rust_demangle_sym ( char *  sym)

Definition at line 183 of file demangle-rust.c.

Here is the call graph for this function:

◆ rust_is_mangled()

bool rust_is_mangled ( const char *  sym)

Definition at line 78 of file demangle-rust.c.

Here is the call graph for this function:

◆ unescape()

static bool unescape ( const char **  in,
char **  out,
const char *  seq,
char  value 
)
static

Definition at line 257 of file demangle-rust.c.

Variable Documentation

◆ hash_len

const size_t hash_len = 16
static

Definition at line 48 of file demangle-rust.c.

◆ hash_prefix

const char* hash_prefix = "::h"
static

Definition at line 46 of file demangle-rust.c.

◆ hash_prefix_len

const size_t hash_prefix_len = 3
static

Definition at line 47 of file demangle-rust.c.