Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7180bafe authored by Raja Mallik's avatar Raja Mallik Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera_v3: Improves logging infrastructure



Defines new macros
  CAM_INFO_RATE_LIMIT_CUSTOM
  CAM_ERR_RATE_LIMIT_CUSTOM

These macros ratelimits logs with provided interval and burst.
Function cam_sync_get_obj_ref is called from CAM_SYNC_SIGNAL ioctl. If
userspace frequently calls this function with invalid sync id, then error
log can cause excessive loging.
Ratelimit log  to 5 times in 1 second.

Change-Id: Id362f7b2025b7d6be88b054b0bacb4134b6a5952
Signed-off-by: default avatarTrishansh Bhardwaj <tbhardwa@codeaurora.org>
Signed-off-by: default avatarRaja Mallik <rmallik@codeaurora.org>
parent 1954c240
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment