Skip to content

Instantly share code, notes, and snippets.

@fourdollars
Created January 29, 2019 09:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fourdollars/69aff394eb3caad89ac3eeff0308de94 to your computer and use it in GitHub Desktop.
Save fourdollars/69aff394eb3caad89ac3eeff0308de94 to your computer and use it in GitHub Desktop.
Using SystemTap to check the brightness level changes.
#!/usr/bin/env stap
probe module("video").function("acpi_video_device_lcd_set_level").call
{
printf ("%s -> %s\n", thread_indent(1), probefunc())
printf ("\t %s args [%s]\n", probefunc(), $$parms)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment