Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ep:labs:061:contents:tasks:ex4 [2026/04/07 11:40]
radu.mantu
ep:labs:061:contents:tasks:ex4 [2026/04/07 12:47] (current)
radu.mantu
Line 1: Line 1:
 ==== 04. [30p] Impact analysis of iptables rules ==== ==== 04. [30p] Impact analysis of iptables rules ====
  
-In [[https://​ocw.cs.pub.ro/​courses/​ep/​labs/​05| Lab 05]] you used bpftrace exclusively via one-liners (''​-e''​ flag). That works fine for quick investigations,​ but as your probes get more complex ​— multiple hooks, conditionals,​ helper functions ​— you'll want to write proper **script files** (''​.bt''​ extension).+In [[https://​ocw.cs.pub.ro/​courses/​ep/​labs/​05| Lab 05]] you used bpftrace exclusively via one-liners (''​-e''​ flag). That works fine for quick investigations,​ but as your probes get more complex ​(multiple hooks, conditionals,​ helper functionsyou'll want to write proper **script files** (''​.bt''​ extension).
  
 The difference is minimal syntactically,​ but it is quite important in practice: a script file can have comments, be version-controlled,​ be shared with teammates, and be run with ''​sudo bpftrace script.bt''​ without the shell escaping headaches that come with one-liners. The difference is minimal syntactically,​ but it is quite important in practice: a script file can have comments, be version-controlled,​ be shared with teammates, and be run with ''​sudo bpftrace script.bt''​ without the shell escaping headaches that come with one-liners.
ep/labs/061/contents/tasks/ex4.1775551207.txt.gz · Last modified: 2026/04/07 11:40 by radu.mantu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0