@@ -546,7 +546,7 @@ probe_cache__find(struct probe_cache *pcache, struct perf_probe_event *pev)
546
546
if (!cmd )
547
547
return NULL ;
548
548
549
- list_for_each_entry (entry , & pcache -> entries , node ) {
549
+ for_each_probe_cache_entry (entry , pcache ) {
550
550
if (pev -> sdt ) {
551
551
if (entry -> pev .event &&
552
552
streql (entry -> pev .event , pev -> event ) &&
@@ -576,7 +576,7 @@ probe_cache__find_by_name(struct probe_cache *pcache,
576
576
{
577
577
struct probe_cache_entry * entry = NULL ;
578
578
579
- list_for_each_entry (entry , & pcache -> entries , node ) {
579
+ for_each_probe_cache_entry (entry , pcache ) {
580
580
/* Hit if same event name or same command-string */
581
581
if (streql (entry -> pev .group , group ) &&
582
582
streql (entry -> pev .event , event ))
@@ -748,7 +748,7 @@ int probe_cache__commit(struct probe_cache *pcache)
748
748
if (ret < 0 )
749
749
goto out ;
750
750
751
- list_for_each_entry (entry , & pcache -> entries , node ) {
751
+ for_each_probe_cache_entry (entry , pcache ) {
752
752
ret = probe_cache_entry__write (entry , pcache -> fd );
753
753
pr_debug ("Cache committed: %d\n" , ret );
754
754
if (ret < 0 )
@@ -790,7 +790,7 @@ static int probe_cache__show_entries(struct probe_cache *pcache,
790
790
{
791
791
struct probe_cache_entry * entry ;
792
792
793
- list_for_each_entry (entry , & pcache -> entries , node ) {
793
+ for_each_probe_cache_entry (entry , pcache ) {
794
794
if (probe_cache_entry__compare (entry , filter ))
795
795
printf ("%s\n" , entry -> spev );
796
796
}
0 commit comments