iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.59k stars 3.88k forks source link

libbpf-tools/offcputime: Print application starting message #5070

Closed Bojun-Seo closed 3 months ago

Bojun-Seo commented 4 months ago

Print starting message like python version does But not implement to print thread_context and stack_context

Python version starting message

  $ sudo python3 ./offcputime.py
  Tracing off-CPU time (us) of all threads by user + kernel stack... Hit Ctrl-C to end.

  $ sudo python3 ./offcputime.py 30
  Tracing off-CPU time (us) of all threads by user + kernel stack for 30 secs.

libbpf-tools version(with this patch) starting message

  $ sudo ./offcputime
  Tracing off-CPU time (us)... Hit Ctrl-C to end.

  $ sudo ./offcputime 30
  Tracing off-CPU time (us) for 30 secs.