Bug 216439 - sqlhist: Implement cast buckets=#
Summary: sqlhist: Implement cast buckets=#
Status: NEW
Alias: None
Product: Tools
Classification: Unclassified
Component: Trace-cmd/Kernelshark (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Default virtual assignee for Trace-cmd and kernelshark
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-01 21:48 UTC by Steven Rostedt
Modified: 2025-03-23 18:06 UTC (History)
1 user (show)

See Also:
Kernel Version: N/A
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Steven Rostedt 2022-09-01 21:48:10 UTC
The cast function of sqlhist does not implement .buckets as it does for log2.

That is, one could do:

  sqlhist -e 'select comm,prio,cast(delta as log2) from wakeup_lat'

But not:

  sqlhist -e 'select comm,prio,cast(delta as buckets=10) from wakeup_lat'
Comment 1 sameer 2025-03-23 14:02:35 UTC
Steve,

Could you please let me know, if this is already implemented?. If not i wanted to work on this.

--sameer.
Comment 2 Steven Rostedt 2025-03-23 18:06:51 UTC
Nope, there's a few things I need to fix with sqlhist, but that wasn't one of them (at least that I remember). Feel free to add that.

Note, I've been running behind on my libtracefs work because I've been focusing mostly on the kernel lately. But that should be running down soon so I can get back to the user space tooling.

Thanks!

-- Steve

Note You need to log in before you can comment on or make changes to this bug.