Lars Francke created HBASE-28242: ------------------------------------ Summary: ProfileServlet does not allow selecting all events (e.g. itimer) Key: HBASE-28242 URL: https://issues.apache.org/jira/browse/HBASE-28242 Project: HBase Issue Type: Improvement Reporter: Lars Francke
In ProfileServlet we currently force the use of certain events because we use an enum with allowed values. async-profiler can support selecting multiple events (comma-separated) and it supports parameters as well. Example from the README: {{event=cpu,alloc=2m,lock=10ms}} We also miss an item {{itimer}} which is suggested if kernel level access to perf events is not available (e.g. in a container) I understand that this probably has to do with security because we don't want to allow users passing in arbitrary things into the command line. At the very least I'd like to add itimer support but if someone has an idea how we can (easily and safely) support more events I'm all ears. -- This message was sent by Atlassian Jira (v8.20.10#820010)