qcacmn: Add debug support for vdev/peer reference and release

Allocate node for new entry and add it to existing list of function or line
If function or line already present in list then increment count

Change-Id: I3d737dcd33862f133b52c6d694c89f6d6b1517a5
This commit is contained in:
aloksing
2019-12-15 22:13:46 +05:30
zatwierdzone przez nshrivas
rodzic 5567f874e7
commit 18f309c7f4
9 zmienionych plików z 526 dodań i 3 usunięć

Wyświetl plik

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -154,4 +154,20 @@ static inline qdf_size_t qdf_str_nlen(const char *str, qdf_size_t limit)
return __qdf_str_nlen(str, limit);
}
/**
* qdf_str_ncmp - Compare two strings
* @str1: First string
* @str2: Second string
* @limit: the maximum number of characters to check
* Return:
* 0 - strings are equal
* <0 - str1 sorts lexicographically before str2
* >0 - str1 sorts lexicographically after str2
*/
static inline int32_t
qdf_str_ncmp(const char *str1, const char *str2, qdf_size_t limit)
{
return __qdf_str_ncmp(str1, str2, limit);
}
#endif /* __QDF_STR_H */