Merge tag 'nfs-for-5.7-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
[linux-2.6-microblaze.git] / tools / perf / util / session.c
index 055b00a..0b0bfe5 100644 (file)
@@ -471,6 +471,8 @@ void perf_tool__fill_defaults(struct perf_tool *tool)
                tool->comm = process_event_stub;
        if (tool->namespaces == NULL)
                tool->namespaces = process_event_stub;
+       if (tool->cgroup == NULL)
+               tool->cgroup = process_event_stub;
        if (tool->fork == NULL)
                tool->fork = process_event_stub;
        if (tool->exit == NULL)
@@ -1436,6 +1438,8 @@ static int machines__deliver_event(struct machines *machines,
                return tool->comm(tool, event, sample, machine);
        case PERF_RECORD_NAMESPACES:
                return tool->namespaces(tool, event, sample, machine);
+       case PERF_RECORD_CGROUP:
+               return tool->cgroup(tool, event, sample, machine);
        case PERF_RECORD_FORK:
                return tool->fork(tool, event, sample, machine);
        case PERF_RECORD_EXIT: