TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Learn EBPF Tracing: Tutorial and Examples

147 pointsby knoxa2511over 6 years ago

4 comments

m1elover 6 years ago
I want to try out eBPF tracing in Linux. I really do.<p>Last three times I tried to install bcc&#x2F;bpftrace on my Debian boxes, I failed to do so. The situation has not changed for over a year. I&#x27;m not the only one:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;iovisor&#x2F;bcc&#x2F;issues&#x2F;678" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;iovisor&#x2F;bcc&#x2F;issues&#x2F;678</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;iovisor&#x2F;bcc&#x2F;issues&#x2F;1434" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;iovisor&#x2F;bcc&#x2F;issues&#x2F;1434</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;iovisor&#x2F;bcc&#x2F;issues&#x2F;1985" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;iovisor&#x2F;bcc&#x2F;issues&#x2F;1985</a>
评论 #18822505 未加载
lowerover 6 years ago
From the bpftrace tutorial, I would have expected the one-liner<p><pre><code> bpftrace -e &#x27;tracepoint:syscalls:sys_enter_open { printf(&quot;%d %s\n&quot;, pid, str(args-&gt;filename)); }&#x27; </code></pre> to show me all open calls as they happen. I would have expected to see an open when I cat a file, for example. But trying the one-liner, I only see a few opens of files in &#x2F;proc.<p>Can anyone explain what&#x27;s happening?
评论 #18822371 未加载
marius_kover 6 years ago
There was this talk[0] at 35c3 introducing eBPF tracing. I still have it on my towatch list as I could not attend it.<p>[0] <a href="https:&#x2F;&#x2F;media.ccc.de&#x2F;v&#x2F;35c3-9532-kernel_tracing_with_ebpf" rel="nofollow">https:&#x2F;&#x2F;media.ccc.de&#x2F;v&#x2F;35c3-9532-kernel_tracing_with_ebpf</a>
letstrynvmover 6 years ago
I use HTTPS Everywhere plugin for firefox... it&#x27;s pretty surprising in 2019 how many network-related blogs and articles are on http links and the https equivalent is broken.<p>You can use Let&#x27;s Encrypt, it&#x27;s free. It makes me not want to listen to what&#x27;s supposed to be their wisdom on networking matters if they can&#x27;t even get that right.
评论 #18821840 未加载
评论 #18821914 未加载
评论 #18821805 未加载
评论 #18822122 未加载