Home
last modified time | relevance | path

Searched refs:sharded_mutex (Results 1 - 3 of 3) sorted by relevance

/kernel/linux/linux-6.6/tools/perf/util/
H A Dsharded_mutex.h15 struct sharded_mutex { struct
21 struct sharded_mutex *sharded_mutex__new(size_t num_shards);
22 void sharded_mutex__delete(struct sharded_mutex *sm);
24 static inline struct mutex *sharded_mutex__get_mutex(struct sharded_mutex *sm, size_t hash) in sharded_mutex__get_mutex()
H A Dsharded_mutex.c2 #include "sharded_mutex.h"
6 struct sharded_mutex *sharded_mutex__new(size_t num_shards) in sharded_mutex__new()
8 struct sharded_mutex *result; in sharded_mutex__new()
27 void sharded_mutex__delete(struct sharded_mutex *sm) in sharded_mutex__delete()
H A Dannotate.c35 #include "util/sharded_mutex.h"
1304 static struct sharded_mutex *sharded_mutex; variable
1309 sharded_mutex = sharded_mutex__new(cpu__max_present_cpu().cpu); in annotation__init_sharded_mutex()
1322 if (!sharded_mutex) in annotation__get_mutex()
1325 return sharded_mutex__get_mutex(sharded_mutex, annotation__hash(notes)); in annotation__get_mutex()

Completed in 6 milliseconds