joelagnel / bpfd

BPFd (Deprecated, please see README.md) : Berkeley Packet Filter daemon (BPFd). Makes it possible to run BCC tools across systems.
Apache License 2.0
95 stars 23 forks source link

tools/cachetop doesn't show hits/misses counter on arm64 #6

Open joelagnel opened 6 years ago

joelagnel commented 6 years ago

This is because the tool looks at local symbols instead of remote's kallsyms:

        if re.match('mark_page_accessed', b.ksym(k.ip)) is not None:
            mpa = max(0, v.value)

        if re.match('mark_buffer_dirty', b.ksym(k.ip)) is not None:
            mbd = max(0, v.value)

        if re.match('add_to_page_cache_lru', b.ksym(k.ip)) is not None:
            apcl = max(0, v.value)

        if re.match('account_page_dirtied', b.ksym(k.ip)) is not None:
            apd = max(0, v.value)
jcanseco commented 6 years ago

We should close this issue once this PR on BCC is approved.

jcanseco commented 6 years ago

This issue should be closed.