Commit 83a9e292 authored by williangaspar's avatar williangaspar

indentation and mapkey

parent 5f9875a6
...@@ -1130,7 +1130,8 @@ std::string BPFtrace::resolve_uid(uintptr_t addr) ...@@ -1130,7 +1130,8 @@ std::string BPFtrace::resolve_uid(uintptr_t addr)
{ {
auto fields = split_string(line, ':'); auto fields = split_string(line, ':');
if (fields[2] == uid) { if (fields[2] == uid)
{
found = true; found = true;
username = fields[0]; username = fields[0];
} }
......
...@@ -74,6 +74,8 @@ std::string MapKey::argument_value(BPFtrace &bpftrace, ...@@ -74,6 +74,8 @@ std::string MapKey::argument_value(BPFtrace &bpftrace,
return bpftrace.resolve_sym(*(uint64_t*)data); return bpftrace.resolve_sym(*(uint64_t*)data);
case Type::usym: case Type::usym:
return bpftrace.resolve_usym(*(uint64_t*)data, *(uint64_t*)(arg_data + 8)); return bpftrace.resolve_usym(*(uint64_t*)data, *(uint64_t*)(arg_data + 8));
case Type::username:
return bpftrace.resolve_uid(*(uint64_t*)data);
case Type::name: case Type::name:
return bpftrace.name_ids_[*(uint64_t*)data]; return bpftrace.name_ids_[*(uint64_t*)data];
case Type::string: case Type::string:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment