Page MenuHomeFreeBSD

pmc(8): zero-initialize the event descriptor in stat mode
Needs ReviewPublic

Authored by afscoelho_gmail.com on Thu, Sep 3, 9:32 PM.
Tags
None
Referenced Files
F171180323: D59364.diff
Wed, Sep 9, 7:29 AM
F171095782: D59364.id185761.diff
Tue, Sep 8, 4:30 PM
F171078171: D59364.id185761.diff
Tue, Sep 8, 2:01 PM
F171077941: D59364.diff
Tue, Sep 8, 1:59 PM
F171068008: D59364.id185761.diff
Tue, Sep 8, 12:35 PM
Unknown Object (File)
Tue, Sep 8, 7:40 AM
Unknown Object (File)
Tue, Sep 8, 5:05 AM
Unknown Object (File)
Mon, Sep 7, 4:30 PM
Subscribers

Details

Reviewers
ali_mashtizadeh.com
Group Reviewers
pmc
Summary

cmd_pmc_stat allocated the event descriptor with malloc and then set
only some of its fields, so the rest held whatever was on the heap.
Use calloc.

This is an independent fix. It does not depend on the PMU grouping
work, and can be committed on its own.

Sponsored by: AMD

Signed-off-by: Andre Silva <andasilv@amd.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76458
Build 73341: arc lint + arc unit