Lines Matching +full:ip +full:- +full:76
1 libperf-sampling(7)
5 ----
6 libperf-sampling - sampling interface
10 -----------
20 --
21 $ gcc -o sampling sampling.c -lperf
23 cpu 0, pid 0, tid 0, ip ffffffffad06c4e6, period 1
24 cpu 0, pid 4465, tid 4469, ip ffffffffad118748, period 18322959
25 cpu 0, pid 0, tid 0, ip ffffffffad115722, period 33544846
26 cpu 0, pid 4465, tid 4470, ip 7f84fe0cdad6, period 23687474
27 cpu 0, pid 0, tid 0, ip ffffffffad9e0349, period 34255790
28 cpu 0, pid 4465, tid 4469, ip ffffffffad136581, period 38664069
29 cpu 0, pid 0, tid 0, ip ffffffffad9e55e2, period 21922384
30 cpu 0, pid 4465, tid 4470, ip 7f84fe0ebebf, period 17655175
32 --
39 - creates events
40 - adds them to the event list
41 - opens and enables events through the event list
42 - sleeps for 3 seconds
43 - disables events
44 - reads and displays recorded samples
45 - destroys the event list
50 --
61 --
69 --
78 --
83 --
92 --
99 --
103 45 return -1;
105 --
110 --
116 --
121 --
129 --
134 --
142 --
147 --
153 --
163 --
164 76 perf_evlist__enable(evlist);
167 --
172 --
186 --
191 --
193 86 __u64 ip, period, *array;
196 89 array = event->sample.array;
198 91 ip = *array;
212 105 fprintf(stdout, "cpu %3d, pid %6d, tid %6d, ip %20llx, period %20llu\n",
213 106 cpu, pid, tid, ip, period);
214 --
221 --
228 --
231 --------------
232 Report bugs to <linux-perf-[email protected]>.
235 -------
239 ---------
243 --------
244 libperf(3), libperf-counting(7)