Commit d5aa5cf
committed
Record maps per process rather than globally, attempt #2
Rather than reading the PID off the bitcasted structure pointer, we need
to use the NewE parsed event instead to avoid struct offsets being
incorrect in case some fields are not present.
Also refactor the readEvent method to have less variable shadowing and
get rid of the pointless definition of E from the PERF_RECORD_SAMPLE
case.
Change-Id: I2cbaf91d5096acdb156ca83291626f134273cb911 parent 60129c2 commit d5aa5cf
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
858 | | - | |
859 | | - | |
| 858 | + | |
| 859 | + | |
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
| |||
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
876 | | - | |
877 | | - | |
| 876 | + | |
878 | 877 | | |
879 | 878 | | |
880 | 879 | | |
881 | 880 | | |
882 | 881 | | |
883 | 882 | | |
884 | 883 | | |
885 | | - | |
| 884 | + | |
886 | 885 | | |
887 | 886 | | |
888 | 887 | | |
| |||
907 | 906 | | |
908 | 907 | | |
909 | 908 | | |
910 | | - | |
| 909 | + | |
911 | 910 | | |
912 | 911 | | |
913 | 912 | | |
| |||
0 commit comments