]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - tools/perf/util/parse-events.c
Merge branch 'perf/hw_breakpoints' into perf/core
[karo-tx-linux.git] / tools / perf / util / parse-events.c
index efa1ff4cca6364442015b07fc32005610941525e..7f8ec6ce2823c4652e04f11618af1b5cfcb4b952 100644 (file)
@@ -682,6 +682,8 @@ int parse_events_add_pmu(struct list_head *list, int *idx,
        if (evsel) {
                evsel->unit = info.unit;
                evsel->scale = info.scale;
+               evsel->per_pkg = info.per_pkg;
+               evsel->snapshot = info.snapshot;
        }
 
        return evsel ? 0 : -ENOMEM;
@@ -1120,7 +1122,7 @@ void print_tracepoint_events(const char *subsys_glob, const char *event_glob,
                return;
 
        for_each_subsystem(sys_dir, sys_dirent, sys_next) {
-               if (subsys_glob != NULL && 
+               if (subsys_glob != NULL &&
                    !strglobmatch(sys_dirent.d_name, subsys_glob))
                        continue;
 
@@ -1131,7 +1133,7 @@ void print_tracepoint_events(const char *subsys_glob, const char *event_glob,
                        continue;
 
                for_each_event(sys_dirent, evt_dir, evt_dirent, evt_next) {
-                       if (event_glob != NULL && 
+                       if (event_glob != NULL &&
                            !strglobmatch(evt_dirent.d_name, event_glob))
                                continue;
 
@@ -1304,7 +1306,7 @@ static void print_symbol_events(const char *event_glob, unsigned type,
 
        for (i = 0; i < max; i++, syms++) {
 
-               if (event_glob != NULL && 
+               if (event_glob != NULL &&
                    !(strglobmatch(syms->symbol, event_glob) ||
                      (syms->alias && strglobmatch(syms->alias, event_glob))))
                        continue;