History

PM / devfreq: events: extend events by type of counted data

This patch adds posibility to choose what type of data should be counted by the PPMU counter. Now the type comes from DT where the event has been defined. When there is no 'event-data-type' the default value is used, which is 'read+write data in bytes'. It is needed when you want to know not only read+write data bytes but i.e. only write data in byte, or number of read requests, etc.

Lukasz Luba committed 7 years ago

Commit 1dd62c61 parent 0ae9c322 files · +47 −19Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/devfreq-event.h+6−0
@@ -78,14 +78,20 @@ struct devfreq_event_ops { · 77 unmodified lines
7878 * struct devfreq_event_desc - the descriptor of devfreq-event device
7979 *
8080 * @name : the name of devfreq-event device.
81+ * @event_type : the type of the event determined and used by driver
8182 * @driver_data : the private data for devfreq-event driver.
8283 * @ops : the operation to control devfreq-event device.
8384 *
8485 * Each devfreq-event device is described with a this structure.
8586 * This structure contains the various data for devfreq-event device.
87+ * The event_type describes what is going to be counted in the register.
88+ * It might choose to count e.g. read requests, write data in bytes, etc.
89+ * The full supported list of types is present in specyfic header in:
90+ * include/dt-bindings/pmu/.
8691 */
8792 struct devfreq_event_desc {
8893 const char *name;
94+ u32 event_type;
8995 void *driver_data;
9096
9197 const struct devfreq_event_ops *ops;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t