Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add libthapi-ctl to start/stop collecting #233

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

bd4
Copy link
Collaborator

@bd4 bd4 commented May 31, 2024

  • for opencl backend, separates bookkeeping calls so they stay enabled even when client stops collection
  • other backends will be fragile, making some API calls that do bookkeeping while collection is stopped may break things

@bd4 bd4 requested a review from TApplencourt May 31, 2024 19:48
@bd4
Copy link
Collaborator Author

bd4 commented May 31, 2024

Basic functionality works, and opencl should be robust. Needs better test, documentation, other backends to split out bookkeeping events.

@Kerilk
Copy link
Collaborator

Kerilk commented May 31, 2024

You need to add liblttng-ctl-dev to the apt install line, I think.

@bd4 bd4 force-pushed the pr/start-stop branch 3 times, most recently from 6a369f2 to 5cd0c70 Compare June 4, 2024 15:46
@TApplencourt
Copy link
Collaborator

Maybe you just have libOpenCL.so.1 and not libOpenCL.so

@bd4 bd4 force-pushed the pr/start-stop branch 3 times, most recently from 0905910 to 870abfd Compare June 10, 2024 15:22
@bd4 bd4 force-pushed the pr/start-stop branch 2 times, most recently from 38b5143 to 57ba963 Compare June 27, 2024 12:27
@bd4 bd4 force-pushed the pr/start-stop branch 3 times, most recently from cb74858 to dd06771 Compare July 2, 2024 13:20
@bd4 bd4 force-pushed the pr/start-stop branch from 2f9fc71 to 3d0c9f7 Compare July 8, 2024 15:13
bd4 added 14 commits July 22, 2024 11:18
- has two function, thapi_start_tracing, thapi_stop_tracing
- requires liblttng-ctl
- adds iprof option --(no)-profile-from-start, default profile from
  start
- puts events in two different sessions, 'main' and 'bookkeeping', each in it's own
  subdir
- start/stop affect the main session only, bookkeeping is always enabled
- so far only opencl backend separates out bookkeeping events; other
  backends put everything in main (TODO)
- Uses env var, default is 1=ERROR
- 0=disabled, 2=WARN, 3=INFO, 4=DEBUG
- Under the default log level, no message will be printed
  when THAPI_LTTNG_SESSION_ID is not set (application is linked with
  libthapi-ctl and calls start or stop tracing, but not run with
  iprof).
@bd4 bd4 force-pushed the pr/start-stop branch from 10ae6cb to 3abe9a4 Compare July 22, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants